2.os.path.dirname() 返回當前檔案的上一層路徑 在te.py檔案下: x1 = os.path.dirname(os.path.dirname(x))print(x1)sys.path.append(x1)print(sys.
確定! 回上一頁