同一个路径下a,b,c三个文件
a.py中定义一个函数
def foo():
print("here in foo")
return
b.py中定义一个类
class Person(object):
def __init__(self):
print("new person ")
c.py中调用他们
import a
import b
#调用
a.foo()
aPerson=b.Person()
或者
from a import foo
from b import Person
#调用
foo()
aPerson=Person()