python 用codecs实现数据的读取
摘要:import numpy as np import codecs f=codecs.open('testsklearn.txt','r','utf-8').readlines() print(f) dataset=list() for i in f: list_data= i.split(',') List=list(); for j in list_data: ...
阅读全文
posted @
2018-01-13 12:09
未完代码
阅读(322)
推荐(0)
python 中常见绘图属性
摘要:fig = plt.figure(facecolor='w')#生成图 ax = fig.add_subplot(111, projection='3d')#绘制子图 ax.scatter(t[0], t[1], density, c='r', s=50*density, marker='o', depthshade=True)#ax.scatter用于绘制点 ax.plot_surfa...
阅读全文
posted @
2018-01-02 15:00
未完代码
阅读(464)
推荐(0)