Commit 3f7893db by BellCodeEditor

save project

parent b4fa78aa
Showing with 4 additions and 4 deletions
...@@ -9,9 +9,9 @@ def up(): ...@@ -9,9 +9,9 @@ def up():
self.hp=self.hp+50 self.hp=self.hp+50
self.attack=self.attack=4 self.attack=self.attack=4
houyi=Hero("后羿",300,20) houyi=Hero("后羿",300,20)
print("后羿hp:",yase.hp) print("后羿hp:",houyi.hp)
up() up()
print("后羿level:",yase.hp) print("后羿level:",houyi.hp)
print("后羿hp:",yase.hp) print("后羿hp:",houyi.hp)
print("后羿attack:",yase.hp) print("后羿attack:",houyi.hp)
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