Commit 2a7e2e7e by BellCodeEditor

save project

parent b93296a0
Showing with 1 additions and 0 deletions
...@@ -11,6 +11,7 @@ class Hero: ...@@ -11,6 +11,7 @@ class Hero:
yase = Hero("亚瑟",100,20) yase = Hero("亚瑟",100,20)
dijia = Hero("迪迦",120,50) dijia = Hero("迪迦",120,50)
yase.upgrade() yase.upgrade()
dijia.upgrade()
print(yase.name+str(yase.hp)) print(yase.name+str(yase.hp))
print(dijia.name+str(dijia.hp)) print(dijia.name+str(dijia.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