給定諸如 "mydir/myfile.txt" 類的路徑,我如何找到相對於Python中當前工作目錄的文件絕對 ... from pathlib import Path >>> p = Path("pythonw.exe").resolve() >>> p ...
確定! 回上一頁