예제 #1
0
from hm_01_测试模块 import Dog
from hm_02_测试模块2 import say_hello

say_hello()

wangcai = Dog()
print(wangcai)
예제 #2
0
import hm_01_测试模块1 as DogModule
import hm_02_测试模块2 as CatModule

DogModule.say_hello()
CatModule.say_hello()

dog = DogModule.Dog()
cat = CatModule.Cat()

print(dog)
print(cat)