![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python函数
甄同学
这个作者很懒,什么都没留下…
展开
-
python中format使用
<<<def zhen(): print('i am zhen')<<<print('hello {} ,i am hui'.format(zhen.__name__))hello zhen ,i am hui原创 2018-04-12 22:26:49 · 1162 阅读 · 0 评论 -
【python】爬虫爬去已知图片url的图片
import urllib.requestimport numpy as npimport osfrom tqdm import tqdmimport urllibboot_path = 'F:/Ubuntu16.4共享文件夹/数据集/Googleland/'img_url_f = open('F:/Ubuntu16.4共享文件夹/数据集/train.csv','r')img_u...原创 2018-09-30 09:00:04 · 1061 阅读 · 0 评论 -
【mpl_toolkits.mplot3d】Axes3D绘制3d散点图
from mpl_toolkits.mplot3dimport Axes3Dcm = plt.cm.get_cmap('RdYlBu')z = test_yfig = plt.figure()ax = Axes3D(fig)ax.scatter(feat[:,0],feat[:,1],feat[:,2],c = z,edgecolors='k',cmap=cm,s=10)转载 2018-11-16 11:23:26 · 7991 阅读 · 0 评论