本教程演示瞭如何在Python 中獲取當前檔案的路徑。 ... pythonCopy import os print(os.path.dirname(os.path.abspath(__file__))). 輸出:. Python.
確定! 回上一頁