Пример #1
0
import p01

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

stu.sayHello()

p01.say()
Пример #2
0
import p01 as p

stu = p.Student('YUEYUE', 15)
stu.say()
Пример #3
0
import p01

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

p01.sayHello()
Пример #4
0
import p01

stu = p01.Student("xiaoming", 19)
stu.Say()
p01.sayhello()
Пример #5
0
import p01 as p

stu = p.Student('yueyue', 19)
stu.say()
Пример #6
0
import p01
stu = p01.Student("yueyue", 18)
stu.say()
p01.sayhello()
Пример #7
0
import p01 as p

stu = p.Student("yueyue")

stu.say()
Пример #8
0
import p01 as p

stu = p.Student()

stu.say()
p.sayHello()
Пример #9
0
import p01

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

stu.say()

p01.sayHello()
Пример #10
0
import p01

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

stu.say()

p01.sayHello()
Пример #11
0
import p01

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

stu.into()

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

p01.sayHello()
Пример #13
0
import p01 as p

stu = p.Student('coco', 22)
stu.say('coco')
Пример #14
0
import p01

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

Пример #15
0
# -*-coding:utf-*
import p01

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

stu.say()

p01.sayHello()
Пример #16
0
import p01

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

stu.say()

p01.sayHello()
Пример #17
0
#-*- coding:UTF-8 -*-

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

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

p01.sayHello('wujian')
Пример #18
0
import p01

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


Пример #19
0
import p01

p01.sayHello()

stu = p01.Student()
stu.name = "yueyue"
stu.say()
Пример #20
0
import p01

stu = p01.Student('DaoDao')

stu.say()

p01.sayHello()
Пример #21
0
import p01 as p

stu = p.Student("yue", 18)
stu.say()
Пример #22
0
import p01 as pp
# from p01 import Student

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

student.say()

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

Пример #25
0
import p01

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

p01.sayHello()





Пример #26
0
# 调用模块p01
import p01

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

stu.say()
p01.sayhello()
Пример #27
0
import p01

stu = p01.Student("wang", 25)
stu.say()
p01.sayhello()
Пример #28
0
import p01

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

stu.say()
p01.sayHello()
Пример #29
0
import p01 as p

stu = p.Student("Yagu", 3)
stu.sayHello()
Пример #30
0
import p01
stu = p01.Student("zz", 22)
stu.say()
p01.sayHello()