Commit 0160b908 by BellCodeEditor

auto save

parent eb31edd3
Showing with 13 additions and 6 deletions
......@@ -5,8 +5,15 @@
#英雄角色:yase(亚瑟)、houyi
yase=Hero()
#打印yase的血量
print('yase的血量为',?)
#打印yase的攻击力
\ No newline at end of file
#定义一个升级方法upgrade:等级每升一级,血量增加50,攻击力加4
#英雄角色:yase(亚瑟,300,20)
#打印亚瑟的初始血量值
#等级提升2级(调用两次upgrade方法)
#打印升级2次后的血量值
\ No newline at end of file
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