python 获取相对路径、绝对路径的__file__使用 ... import os print(__file__) # 获取当前文件的相对路径print(os.path.dirname(__file__)) # 获取当前文件所在目录的 ...
確定! 回上一頁