Skip to content

Latest commit

 

History

History
11 lines (10 loc) · 397 Bytes

File metadata and controls

11 lines (10 loc) · 397 Bytes

Xiang Wang @ 2019-03-25 16:48:34

os.path

官网

  • os.path.abspath
  • os.path.dirname
  • os.path.exists 返回是否存在这个文件或者目录
  • os.path.lexists
  • os.path.isfile:
    Return True if path is an existing regular file. This follows symbolic links, so both islink() and isfile() can be true for the same path.