- 博客(4)
- 收藏
- 关注
转载 python基础学习之 输出某个目录下所有文件中文名和文件路径+文件名
```def GetFileList(dir, fileList): if os.path.isfile(dir): # fileList.append(dir.decode('gbk')) # 全路径 fileList.append(dir.decode('gbk').split('/')[2]) #只有文件名 elif os.path.isdir...
2019-07-10 22:57:35 287
原创 python基础学习 文档和资料搜集
Scrapy 0.25 文档Scrapy1.5中文文档Scrapy教程Scrapy错误Scrapy实战Scrapy视频教程讨论区https://scrapy-chs.readthedocs.io/zh_CN/latest/Scrapyhttp://www.scrapyd.cn/latesthttps://scrapy-chs.readthedocs.io/zh...
2019-07-10 22:22:46 164
原创 python拼接字符串 中有的是整数时需要用str()进行转换才能进行拼接 TypeError: cannot concatenate 'str' and 'int' objects
f.write(strtime + '\t' + i + '\t' + titleYied + '\t' + urlyied + '\n') # ‘\n’ 表示换行TypeError: cannot concatenate 'str' and 'int' objects解决:python拼接字符串 中有的是整数时需要用str()进行转换才能进行拼接...
2019-07-10 22:06:40 396
原创 大坑啊 python matplotlibrc 在win10画图标签中文label显示乱码解决/ win10 python 画图中文label显示乱码问题解决 19-7-9搞了一天终于解决
解决:import matplotlib.font_manager as fm# myfont = fm.FontProperties(fname='C:/Windows/Fonts/simsun.ttc')myfont = fm.FontProperties(fname='C:/Windows/Fonts/msyhbd.ttc')plt.xlabel(u'身高',fontproper...
2019-07-09 22:47:02 615
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人