Commit a3be3668 by BellCodeEditor

save project

parent fc1da6b2
Showing with 6 additions and 0 deletions
...@@ -16,6 +16,12 @@ print(yase.hp) ...@@ -16,6 +16,12 @@ print(yase.hp)
yase.upgrade() yase.upgrade()
print(yase.hp) print(yase.hp)
wangzhaojun = Hero("王昭君",500,100)
wangzhaojun.upgrade()
print(yase.hp)
wangzhaojun.upgrade()
print(yase.hp)
#wangzhaojun = Hero("王昭君",200,100) #wangzhaojun = Hero("王昭君",200,100)
#xiaoqiao = Hero("小乔",100,20) #xiaoqiao = Hero("小乔",100,20)
......
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