run以后出现这个,咋弄?大佬救命
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_umd.py", line 197, in runfilepydev_imports.execfile(filename, global_vars, local_vars)# execute the script
File "C:\Program Files\JetBrains\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile
exec(compile(contents+"\n", file, 'exec'), glob, loc)
File "C:/Users/Administrator/Desktop/spider/spider_maoyan_v2.py", line 77
if __name__ =="__main__":
^
SyntaxError: invalid syntax
看一下if __name__ =="__main__":前面有没有多余空格啥的,造成了语法错误
建议完整点的代码发上来看看~
请发代码
页:
[1]