Commit 63cc7d47 by BellCodeEditor

save project

parent 32f1872f
Showing with 13 additions and 5 deletions
class Hero: class Hero:
...@@ -3,6 +3,14 @@ class Hero: ...@@ -3,6 +3,14 @@ class Hero:
self.leve1 = 1 self.leve1 = 1
self.name = name self.name = name
self.hp = hp self.hp = hp
self.attack = attack self.attac
zhaizimu = Hero("翟子木",999999999999999999999,9999999999999999) k = attac
print("翟子木的血量:",zhaizimu.hp) zhaizimu = Hero("翟子木",300,20)
\ No newline at end of file
def up():
zhaizimu.leve1 = zhaizimu.leve1 + 1
zhaizimu.hp = hp + 50
zhaizimu.attack = zhaizimu.attack + 4
up()
up()
\ 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