xxiong1031

 代表当前的路径,.. 代表当前路径的上一级路径。这在UNIX和Windows系统意义是类似的。

import os
# 获得当前路径
print os.getcwd()
print os.path.abspath(os.curdir)
print os.path.abspath(\'.\')
# 获得上一级目录的路径
print os.path.abspath(\'..\')

参考:http://blog.csdn.net/menuconfig/article/details/8670335

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2021-11-23
  • 2021-11-23
  • 2021-11-23
  • 2021-06-21
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-02-04
  • 2021-11-23
  • 2021-09-20
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案