摘要:
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... 阅读全文
摘要:
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) ... 阅读全文