python sys.path.append

本身寫的程序和模塊不在同一個目錄下,怎麼導入模塊呢?python set PYTHONPATH = C:\test 之類的,徹底不起做用,或者是我沒理解清楚還請大神指正 那,怎麼辦呢?app 用 sys.path.append,這是正解,親測有效code import sys sys.path.append('你本身的路徑') 好了,你試試看,絕對沒問題class
相關文章
相關標籤/搜索