会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
codeg
为了算法终将创造的美好,持续奋斗!
博客园
首页
新随笔
联系
订阅
管理
2019年1月4日
AttributeError: module '__main__' has no attribute 'main'解决方法
摘要: 在终端运行.py文件时报错:AttributeError: module '__main__' has no attribute 'main' 原因:在PyCharm里运行python程序需要添加 但是直接用python命令行运行时无法识别出该函数头,删除该函数所有内容即可!
阅读全文
posted @ 2019-01-04 18:32 codeg
阅读(9149)
评论(0)
推荐(0)
公告