如何在python中找到文件的確切路徑。?這是非常基本的。但我新的Python如何找出使用python的文件的確切路徑?
,如果我的文件名爲file.txt的
path = "D:\\Utilities\\folder\\python\\model\\file.txt
如何獲得通過只給文件名的確切路徑?
如何在python中找到文件的確切路徑。?這是非常基本的。但我新的Python如何找出使用python的文件的確切路徑?
,如果我的文件名爲file.txt的
path = "D:\\Utilities\\folder\\python\\model\\file.txt
如何獲得通過只給文件名的確切路徑?
http://stackoverflow.com/questions/51520/how-to-get-an-absolute-file-path-in-python – Farhadix