溫馨提示×

python getcwd函數如何獲取當前工作目錄

小樊
100
2024-08-26 15:35:11
欄目: 編程語言

要獲取當前工作目錄,可以使用Python中的os模塊中的getcwd()函數。示例如下:

import os

current_dir = os.getcwd()
print("Current working directory:", current_dir)

運行上述代碼,將輸出當前工作目錄的路徑。

0
亚洲午夜精品一区二区_中文无码日韩欧免_久久香蕉精品视频_欧美主播一区二区三区美女