测试的一些知识

windows下,根据文件名,查看路径

2017-09-27  本文已影响2人  井湾村夫

import os

test = r'key.txt'

path = os.path.abspath(test)

print path

上一篇下一篇

猜你喜欢

热点阅读