附截图:

python中os模块path.abspath()返回的并不是绝对值,而是个错误的不存在的拼接地址

当前路径:

python中os模块path.abspath()返回的并不是绝对值,而是个错误的不存在的拼接地址

 a=r'D:\PCsync\python\commands'  为绝对路径
遍历出来的4条应该是D:\PCsync\python\commands\commands.py....
不知道哪里错误了,先记录下来。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-02-11
  • 2022-12-23
  • 2021-04-14
  • 2021-11-14
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2021-12-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案