1、
a = ['1', '2', '3', '4']
print(a)
2、
b = list(map(int, a))
print(b)
3、
b = list(map(float, a))
print(b)
4、
b = np.array(b)
print(b)
b = np.reshape(b, (2, 2))
print(b)
c = np.reshape(b, (2, 2, 1))
print(c)
1、
a = ['1', '2', '3', '4']
print(a)
2、
b = list(map(int, a))
print(b)
3、
b = list(map(float, a))
print(b)
4、
b = np.array(b)
print(b)
b = np.reshape(b, (2, 2))
print(b)
c = np.reshape(b, (2, 2, 1))
print(c)