import p01 as aa stu = aa.student() stu.sayhello()
from p01 import student, SayHello stu = student("xiaoxiao") stu.say() SayHello()
import p01 stu = p01.student("xiaoxiao", 19) stu.say() p01.SayHello()
import p01 as py import sys student = py.student() student.say() print(type(sys.path)) print(sys.path) for p in sys.path: print(p)
from p01 import student, sayhello sb = student() sb.say() sayhello()
import p01 stu = p01.student("小佳佳", 20) stu.sayhello() p01.say()
import p01 as p stu = p.student("xiaoxiao") stu.say()