python如何得到模塊所在的目錄 查找一個python模塊所在的路徑,可以使用‘__file__’方法獲取模塊的路徑。 如: 得到‘os’模塊的路徑:“'C:\\Users\\username\\anaconda3\ ...