Example #1
0
import p01

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

stu.sayHello()

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

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

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

p01.sayHello()
Example #4
0
import p01

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

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

stu = p.Student("yueyue")

stu.say()
Example #8
0
import p01 as p

stu = p.Student()

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

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

stu.say()

p01.sayHello()
Example #10
0
import p01

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

stu.say()

p01.sayHello()
Example #11
0
import p01

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

stu.into()

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

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

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

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

Example #15
0
File: p02.py Project: Joe777777/OO
# -*-coding:utf-*
import p01

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

stu.say()

p01.sayHello()
Example #16
0
import p01

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

stu.say()

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

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

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

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

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


Example #19
0
import p01

p01.sayHello()

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

stu = p01.Student('DaoDao')

stu.say()

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

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

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

student.say()

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

Example #25
0
import p01

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

p01.sayHello()





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

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

stu.say()
p01.sayhello()
Example #27
0
File: p02.py Project: sczhan/study
import p01

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

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

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

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