python
浮生若梦逸旧殇
始于容颜,陷于才华,忠于人品
展开
-
python 目录遍历,报存到表格中
python 目录遍历,报存到表格中代码: import os import xlwt import time def file(filePath): """ 将任意目录下及子目录的文件以及文件大小添加到excle表格中 :param filePath: :return:原创 2018-12-01 21:36:13 · 323 阅读 · 0 评论 -
IDEA导入第三方库时,报错AttributeError: module 'pip' has no attribute 'main'问题解决方法
一、错误原因:由于pip-19.0.3中没有main方法,所有在使用Alt+回车导入包时报错错误信息:AttributeError: module ‘pip’ has no attribute ‘main’二、解决办法:1.在目录:C:\Users\Administrator.IntelliJIdea2017.2\config\plugins\python\helpers 下找到:pac...原创 2019-03-03 00:24:38 · 721 阅读 · 0 评论