python-数据可视化

http://blog.csdn.net/kevinelstri/article/details/52938604

http://blog.csdn.net/golden1314521/article/details/44700551

1. 矩阵写入文件:

# D is the matrix
pxyfile2 = open('/home/pxy7896/Desktop/2/output/sample.txt', 'w')
for pxy in range(len(D)):
     pxyfile2.write(str(D[pxy]))
pxyfile2.close()

 

posted @ 2017-02-26 13:52  陆离可  阅读(216)  评论(0编辑  收藏  举报