Commit 3e8b1c77 by BellCodeEditor

save project

parent 298e7048
Showing with 10 additions and 9 deletions
class Hero: class ChongZhuangZhiXin:
def __init__(self,name,hp,attack): def __init__(self,name,hp,attack,defense):
self.level=1 self.level=1
self.name=name self.name=name
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
yase=Hero('yase',300,20) self.defense=defense
hy=Hero('hy',250,23) BPLD=ChongZhuangZhiXin("JiDongXiaoZi",200,30,45)
k=Hero('K',5600,199) WYPD=ChongZhuangZhiXin("KuangRenJiQiang",150,60,20)
print(yase.attack)
print(hy.attack) class SiShenJunTuan:
print(k.attack) def __init__(self,name,hp,attack,defense):
\ No newline at end of file self.lever()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment