from hm_01_测试模块 import Dog from hm_02_测试模块2 import say_hello say_hello() wangcai = Dog() print(wangcai)
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)