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:
self.leve1 = 1
self.name = name
self.hp = hp
self.attack = attack
zhaizimu = Hero("翟子木",999999999999999999999,9999999999999999)
print("翟子木的血量:",zhaizimu.hp)
\ No newline at end of file
self.attac
k = attac
zhaizimu = Hero("翟子木",300,20)
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