os.path.expanduser和os.path.abspath的区别

  • 一般Linux系统用~来代表"/home/用户名/"这个路径,但是python不认识~符号,所以我们需要用os.path.expanduser把~展开
    os.path.expanduser和os.path.abspath的区别

  • os.path.abspath用来返回目录的绝对路径
    os.path.expanduser和os.path.abspath的区别

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-26
  • 2022-02-14
  • 2022-12-23
  • 2021-05-10
  • 2021-11-02
猜你喜欢
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-08-17
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案