Commit 3305b1d7 by BellCodeEditor

save project

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