自定义模块lib\test.py  
int a
int b
def add(a,b)
    k=a+b
    return k
k=add(a,d)
print k
参数传递
>>>a=5  
>>>b=6  
>>>test.add(a,b)
11