要獲取Python 中的當前工作目錄,請使用以下文件路徑名。 import os cwd = os.getcwd() print(cwd). 輸出 /Users/krunal/Desktop/code/pyt/database.
確定! 回上一頁