Commit f18cc28d by BellCodeEditor

auto save

parent 6817f0ba
Showing with 1 additions and 0 deletions
...@@ -5,6 +5,7 @@ class Hero: ...@@ -5,6 +5,7 @@ class Hero:
self.hp= hp self.hp= hp
self.attack= attack self.attack= attack
def
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
hy=Hero('后羿',250,23) hy=Hero('后羿',250,23)
print("亚索的血量为:",yase.hp) print("亚索的血量为:",yase.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