直接上代码:
1 # -*- coding: gbk -*-
2 import sys
3
4 sys.path.append('H:\project_py\jiJin') # 把该路径添加到临时变量
5 print(sys.path)
6 from jijin_info import *
7
8 a = JiJin('测试')
9 a.info()
输出如下
标签:info,python,sys,临时,添加,path,import
来源: https://www.cnblogs.com/yifengyu/p/16408591.html