网站介绍:文章浏览阅读10w+次,点赞14次,收藏10次。刚开始通过《python核心编程》学习python,之前并不熟悉python的语法规则,今天在练习GUI编程的文件系统遍历GUI时,出现main() missing 1 required positional argument: 'self'错误,网上查找后发现有因为构造函数使用错误而出现此错误的,检查代码发现我并没有犯类似错误,再次仔细观察代码发现,这类错误为普通函数没有参数导致的,但我的是ma
- 链接地址:https://blog.csdn.net/xiaoxulaoda/article/details/79281277
- 链接标题:出现main() missing 1 required positional argument: 'self'错误的原因-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:6254
- 网站标签:出现main() missing 1 required positional argument: 'self'错误的原因