为什么运行python会出错process?
1.python运行结束出现:processfinishedwithexitcode0说明,程序正常运行完。例如:test1.py文件如下代码a = 1/1print a运行后出现:Processfinishedwithexitcode02.如果出现:processfinishedwithexitcode1说明程序出错,也就是代码有问题。例如:test2.pya = 1/0print a运行后出现:Traceback(mostrecentcalllast):File"/Users/pwd/work/project/AnyData/data/test3.py",line36,in<module>a=1/0ZeroDivisionError:integerdivisionormodulobyzero [报错:0不能被除]Processfinishedwithexitcode1
Copyright © 广州京杭网络科技有限公司 2005-2025 版权所有 粤ICP备16019765号
广州京杭网络科技有限公司 版权所有