Commit 3305b1d7 by BellCodeEditor

save project

parent 9f20be7a
Showing with 9 additions and 5 deletions
......@@ -4,7 +4,11 @@ class hero:
self.hp = hp
self.level = level
self.name = name
yido=hero("yido",10086,10086,10086)
qigeqi=hero("level",7777777,7777777,7777777)
print(yido.hp)
print(qigeqi.hp)
\ No newline at end of file
yase = hero("yase",300,20,1)
def uplevel():
yase.level = yase.level + 1
yase.hp = yase.hp + 50
yase.attack = yase.attack + 4
uplevel()
uplevel()
print("亚瑟的血量为:",yase.hp)
\ 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