查找當前目錄和文件目錄[重複] - Find current directory and file's directory [duplicate]

問題:

This question already has answers here : 這個問題已經在這裏有了答案
Closed 2 years ago . 2年前關閉。

In Python, what commands can I use to find: 在Python中,我可使用哪些命令來查找: shell

  1. the current directory (where I was in the terminal when I ran the Python script), and 當前目錄(運行Python腳本時我在終端中的位置),以及
  2. where the file I am executing is? 我正在執行的文件在哪裏?

解決方案:

參考一: https://stackoom.com/question/LYUr/查找當前目錄和文件目錄-重複
參考二: https://oldbug.net/q/LYUr/Find-current-directory-and-file-s-directory-duplicate
相關文章
相關標籤/搜索