python 문법 공부 - list
1. 기본 list 생성 1 2 x_data = [] y_data = [] cs 2. list to array 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 import numpy as np A = [100,200] B = [50,0] C = [350,100] expression_data = [A,B,C] array2d = np.array(expression_data) print(array2d) """ [[100 200] [ 50 0] [350 100]] """ array = np.array(A) print("A type", type(A)) #A type print(array2d.shape) #(3, 2) print(type(array2d)) # print(a..
Programming/python
2019. 9. 5. 15:54