摘要: import numpy as np def main(): # print("hello") # line import matplotlib.pyplot as plt x = np.linspace(-np.pi, np.pi, 256, endpoint=True) # print(x) c, s = np.cos(x), np.sin(x... 阅读全文
posted @ 2018-05-26 23:49 流星小子 阅读(200) 评论(0) 推荐(0) 编辑
摘要: import numpy as np def main(): lst=[[1,3,5],[2,4,6]] print('hello world') print(type(lst)) np_lst = np.array(lst) print(type(np_lst)) np_lst = np.array(lst,dtype=np.float) ... 阅读全文
posted @ 2018-05-26 23:33 流星小子 阅读(462) 评论(0) 推荐(0) 编辑