保存到文件
np.savetxt("stat.txt", stat);
新建數組
stat=np.zeros((1747,1747),int)
設置輸出完整數組
np.set_printoptions(threshold=np.inf)
獲得有個隨機數組
#隨機整數 (min max size datatype)
x=np.random.randint(0, 9, 1, int)
y=np.random.randint(0, 9, 1, int)
np.savetxt("stat.txt", stat);
stat=np.zeros((1747,1747),int)
np.set_printoptions(threshold=np.inf)
#隨機整數 (min max size datatype)
x=np.random.randint(0, 9, 1, int)
y=np.random.randint(0, 9, 1, int)
繼續運行 ?* 回憶上次內容 上次使用shell環境中的命令 命令 作用 c