
python
ShyHG
路漫漫其修远兮~
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
pyqt PIL读取图片出现argument 1 has unexpected type ‘...ImageFile‘
首先PIL如果读取图片,应该使用image = Image.open("fileName")要想将image准换成pixmap然后使用label等空间显示的时候:可以使用QtGui.QPixmap("filePath")或者QtGui.QPixmap.fromImage(image)但有时候会出现argument 1 has unexpected type ‘…ImageFile’这是由于PIL库没有引入正确,引入:from PIL import Imagefrom PIL.Imag原创 2020-10-22 11:10:11 · 5013 阅读 · 2 评论 -
PyCharm中PyQt5开发环境配置
https://www.jianshu.com/p/0af0a216e43d原创 2020-10-21 21:53:13 · 96 阅读 · 0 评论 -
vscode python读取文件或模块失败 No such file or directory
明明在一个文件夹中,通过相对路径就是无法读取,提示No such file or directory:XXX,尝试了诸多方法,最终确定是vscode默认相对路径无效,参考(点击这里跳转)这篇文章获得结果。原创 2020-10-21 21:44:59 · 6820 阅读 · 2 评论 -
pycharm断点无效
断点无效,即使打了断点也会暂停几秒钟跳过断点,我遇到这个问题的解决办法是换一个python解释器,在右下角:![在这里插入图片描述](https://img-原创 2020-09-24 21:14:31 · 2029 阅读 · 1 评论