📌  相关文章
📜  在 Python 代码示例中获取当前工作目录

📅  最后修改于: 2022-03-11 14:45:49.807000             🧑  作者: Mango

代码示例1
# Python program get current working directory using os.getcwd()
        
# importing os module
import os
    
# Get the current directory path
current_directory = os.getcwd()
    
# Print the current working directory
print("Current working directory:", current_directory)