📜  我的 python 工作目录是什么 - Python 代码示例

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

代码示例2
# Import the os module
import os

# Get the current working directory
cwd = os.getcwd()

# Print the current working directory
print("Current working directory: {0}".format(cwd))

# Print the type of the returned object
print("os.getcwd() returns an object of type: {0}".format(type(cwd)))