去外太空的光 2021-02-08 15:27 采纳率: 66.7%
浏览 298

小白求问,python出现如下的错误,怎么解决呢?

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
 

  • 写回答

2条回答 默认 最新

  • SoftwareTeacher 《编程之美》作者 2021-02-09 04:56
    关注

    > 'ntpath' has no attribute 'esists'

    要写 exists

    评论

报告相同问题?

悬赏问题

  • ¥15 react-diff-viewer组件,如何解决数据量过大卡顿问题
  • ¥20 遥感植被物候指数空间分布图制作
  • ¥15 安装了xlrd库但是import不了…
  • ¥20 Github上传代码没有contribution和activity记录
  • ¥20 SNETCracker
  • ¥15 数学建模大赛交通流量控制
  • ¥15 为什么我安装了open3d但是在调用的时候没有报错但是什么都没有发生呢
  • ¥50 paddleocr最下面一行似乎无法识别
  • ¥15 求某类社交网络数据集
  • ¥15 靶向捕获探针方法/参考文献