示例#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
文件: p03.py 项目: unchch/PyLearn
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
文件: p02.py 项目: zuoan527/demo2
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
文件: p02.py 项目: Joe777777/OO
# -*-coding:utf-*
import p01

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

stu.say()

p01.sayHello()
示例#16
0
文件: p02.py 项目: tianzfssq/Python
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
文件: p02.py 项目: sczhan/study
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()