os.getcwd():获取当前工作路径(get current working directory)
import os
current_dir = os.getcwd()
print(current_dir)
# Output: /path/to/current/directory
os.getcwd():获取当前工作路径(get current working directory)
import os
current_dir = os.getcwd()
print(current_dir)
# Output: /path/to/current/directory
本文标题:【Python】os.getcwd()
本文链接:https://www.haomeiwen.com/subject/urmpedtx.html
网友评论