要在Python 中獲取絕對文件路徑,請使用os.path.abspath() 函數。 import os abspath = os.path.abspath("app.py") print(abspath). 輸出 /Users/krunal/ ...
確定! 回上一頁