Exemplo n.º 1
0
import p01

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

stu.sayHello()

p01.say()
Exemplo n.º 2
0
import p01 as p

stu = p.Student('YUEYUE', 15)
stu.say()
Exemplo n.º 3
0
import p01

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

p01.sayHello()
Exemplo n.º 4
0
import p01

stu = p01.Student("xiaoming", 19)
stu.Say()
p01.sayhello()
Exemplo n.º 5
0
import p01 as p

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

stu = p.Student("yueyue")

stu.say()
Exemplo n.º 8
0
import p01 as p

stu = p.Student()

stu.say()
p.sayHello()
Exemplo n.º 9
0
import p01

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

stu.say()

p01.sayHello()
Exemplo n.º 10
0
import p01

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

stu.say()

p01.sayHello()
Exemplo n.º 11
0
import p01

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

stu.into()

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

p01.sayHello()
Exemplo n.º 13
0
import p01 as p

stu = p.Student('coco', 22)
stu.say('coco')
Exemplo n.º 14
0
import p01

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

Exemplo n.º 15
0
Arquivo: p02.py Projeto: Joe777777/OO
# -*-coding:utf-*
import p01

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

stu.say()

p01.sayHello()
Exemplo n.º 16
0
import p01

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

stu.say()

p01.sayHello()
Exemplo n.º 17
0
#-*- coding:UTF-8 -*-

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

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

p01.sayHello('wujian')
Exemplo n.º 18
0
import p01

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


Exemplo n.º 19
0
import p01

p01.sayHello()

stu = p01.Student()
stu.name = "yueyue"
stu.say()
Exemplo n.º 20
0
import p01

stu = p01.Student('DaoDao')

stu.say()

p01.sayHello()
Exemplo n.º 21
0
import p01 as p

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

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

student.say()

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

Exemplo n.º 25
0
import p01

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

p01.sayHello()





Exemplo n.º 26
0
# 调用模块p01
import p01

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

stu.say()
p01.sayhello()
Exemplo n.º 27
0
Arquivo: p02.py Projeto: sczhan/study
import p01

stu = p01.Student("wang", 25)
stu.say()
p01.sayhello()
Exemplo n.º 28
0
import p01

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

stu.say()
p01.sayHello()
Exemplo n.º 29
0
import p01 as p

stu = p.Student("Yagu", 3)
stu.sayHello()
Exemplo n.º 30
0
import p01
stu = p01.Student("zz", 22)
stu.say()
p01.sayHello()