Beispiel #1
0
import p01

stu = p01.Student("Xiaojing",19)

stu.sayHello()

p01.say()
Beispiel #2
0
import p01 as p

stu = p.Student('YUEYUE', 15)
stu.say()
Beispiel #3
0
import p01

stu = p01.Student('shenwei', 24)
stu.say()

p01.sayHello()
Beispiel #4
0
import p01

stu = p01.Student("xiaoming", 19)
stu.Say()
p01.sayhello()
Beispiel #5
0
import p01 as p

stu = p.Student('yueyue', 19)
stu.say()
Beispiel #6
0
import p01
stu = p01.Student("yueyue", 18)
stu.say()
p01.sayhello()
Beispiel #7
0
import p01 as p

stu = p.Student("yueyue")

stu.say()
import p01 as p

stu = p.Student()

stu.say()
p.sayHello()
Beispiel #9
0
import p01

stu = p01.Student("wangdan", 20)

stu.say()

p01.sayHello()
Beispiel #10
0
import p01

stu = p01.Student("xiaoxiao", 19)

stu.say()

p01.sayHello()
Beispiel #11
0
import p01

stu = p01.Student("qj", 11)

stu.into()

p01.sayhello()
Beispiel #12
0
import p01
# 导入模块相当于把代码导入执行了一遍
stu = p01.Student('xiaojing', 19)
stu.say()

p01.sayHello()
Beispiel #13
0
import p01 as p

stu = p.Student('coco', 22)
stu.say('coco')
Beispiel #14
0
import p01

stu = p01.Student("xiaolong", 17)
stu.say()
p01.sayhello()

Beispiel #15
0
# -*-coding:utf-*
import p01

stu = p01.Student("xiaojin", 19)

stu.say()

p01.sayHello()
Beispiel #16
0
import p01

stu = p01.Student("xiaojing", 20)

stu.say()

p01.sayHello()
Beispiel #17
0
#-*- coding:UTF-8 -*-

import p01
# 引入模块p01的标准模式

stu = p01.Student('wujian', 29)
stu.say()

p01.sayHello('wujian')
Beispiel #18
0
import p01

stu = p01.Student("小静", 19)
stu.say()
p01.sayHello()


Beispiel #19
0
import p01

p01.sayHello()

stu = p01.Student()
stu.name = "yueyue"
stu.say()
Beispiel #20
0
import p01

stu = p01.Student('DaoDao')

stu.say()

p01.sayHello()
Beispiel #21
0
import p01 as p

stu = p.Student("yue", 18)
stu.say()
Beispiel #22
0
import p01 as pp
# from p01 import Student

student = pp.Student(26, "孙宇军")

student.say()

pp.say_hello()
Beispiel #23
0
import p01 as pp
stu = pp.Student("junjun", 30)
stu.say()
pp.sayHello()
Beispiel #24
0
# 模块使用
# 使用p01中的代码
import p01
# 相当于把p01模块中的代码粘贴到这里
stu = p01.Student("周震南", 31)
stu.say()
p01.sayHello()

Beispiel #25
0
import p01

stu = p01.Student("yun", 25)
stu.say()

p01.sayHello()





Beispiel #26
0
# 调用模块p01
import p01

# 定义
stu = p01.Student('wuyuhgan', 52)

stu.say()
p01.sayhello()
Beispiel #27
0
import p01

stu = p01.Student("wang", 25)
stu.say()
p01.sayhello()
Beispiel #28
0
import p01

stu = p01.Student("刘俊", 18)

stu.say()
p01.sayHello()
Beispiel #29
0
import p01 as p

stu = p.Student("Yagu", 3)
stu.sayHello()
Beispiel #30
0
import p01
stu = p01.Student("zz", 22)
stu.say()
p01.sayHello()