題名通りです.
import numpy as np
np.fromiter('0101', dtype=np.int8)
>>> array([0, 1, 0, 1], dtype=int8)
Go to list of users who liked
More than 3 years have passed since last update.
題名通りです.
import numpy as np
np.fromiter('0101', dtype=np.int8)
>>> array([0, 1, 0, 1], dtype=int8)
Register as a new user and use Qiita more conveniently
Go to list of users who liked