python
sen-shaw
这个作者很懒,什么都没留下…
展开
-
windows下Python发生OSError: [Errno 22] Invalid argument:.........
今天在网上爬取文件并保存在本地时先后发生了这个错误,可能的结果如下:除了文件名中可能有\,发生了python中字符串的转义错误,还有可能是Windows系统自身文件命名规则的限制。在Windows系统中,文件名不允许使用的字符有:< > / \ | : " * ?(均为英文版,可替换成中文版)可用如下代码修改:if title.__contains__("?")...原创 2018-09-04 00:21:32 · 2876 阅读 · 1 评论 -
pyinstaller打包的py文件中包含matplotlib(或使用QT5)导致运行时出错
错误提示:This application failed to start because it could not find or load the Qt platform plugin "windows" in "".解决方法:将D:\Anaconda3\Library\plugins\platforms文件夹复制到pyinstaller生成的dist文件下。参考该路径找到pla...原创 2019-05-06 17:21:24 · 2038 阅读 · 0 评论