Commit d2e4d985 by BellCodeEditor

save project

parent d6c81a0f
Showing with 33 additions and 0 deletions
class ChongZhuangZhiXin:
def __init__(self,name,hp,attack,defense):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
self.defense=defense
def upgrade(self):
self.level=self.level+1
self.hp=self.hp+83.33333333333333
self.attack=self.attack+30
self.defense=self.defense+20
BPLD=ChongZhuangZhiXin("JiDongXiaoZi",200,30,45)
BPLD.upgrade()
BPLD.upgrade()
# class SiShenJunTuan:
# def __init__(self,name,hp,attack,defense):
# self.lever()
\ No newline at end of file
print(1000/12)
\ 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