Traceback (most recent call last):
File "D:\编程\python practice\studentsys\stusystem.py", line 158, in <module>
main()
File "D:\python practice\studentsys\stusystem.py", line 24, in main
modify()
File "D:\编程\python practice\studentsys\stusystem.py", line 120, in modify
if os.path.esists(filename):
AttributeError: module 'ntpath' has no attribute 'esists'
Process finished with exit code 1
> 'ntpath' has no attribute 'esists'
要写 exists
已解决!
是出现了拼写错误,导致了ntpath模块没有找到属性