摘要: 在终端运行.py文件时报错:AttributeError: module '__main__' has no attribute 'main' 原因:在PyCharm里运行python程序需要添加 但是直接用python命令行运行时无法识别出该函数头,删除该函数所有内容即可! 阅读全文
posted @ 2019-01-04 18:32 codeg 阅读(9149) 评论(0) 推荐(0)