您的位置: 首页 > IT文章 > py.path模块 py.path模块 分类: IT文章 • 2024-06-05 17:03:55 # https://py.readthedocs.io/en/latest/path.html from py.path import local print(local('xx.txt')) # 会将传递来的文件变成本地当前的绝对路径文件