Python获取当前路径 https://blog.csdn.net/qq_15188017/article/details/53991216 例子: import ospwd=os.getcwd()print(pwd)