Commit 31792e18 by BellCodeEditor

save project

parent 2ed53fdb
Showing with 6 additions and 4 deletions
...@@ -4,8 +4,6 @@ class Hero(): ...@@ -4,8 +4,6 @@ class Hero():
self.hp=hp self.hp=hp
self.attack=attack self.attack=attack
# print(self.attack)
yase = Hero("戟",9,250) yase = Hero("戟",9,250)
def upgrade(): def upgrade():
...@@ -17,4 +15,9 @@ def upgrade(): ...@@ -17,4 +15,9 @@ def upgrade():
upgrade() upgrade()
upgrade() upgrade()
print("生命值",yase.hp) print("生命值",yase.hp)
\ No newline at end of file
def upgrade():
print("",houyi.level)
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