Commit a6d0b095 by BellCodeEditor

save project

parent 07ade11b
Showing with 6 additions and 7 deletions
...@@ -6,9 +6,8 @@ class Hero: ...@@ -6,9 +6,8 @@ class Hero:
def one(): def one():
yase.sm-yase.sm+100 yase.sm-yase.sm+100
yase.gj-yase.gj+120 yase.gj-yase.gj+120
houyi=Hero('后羿',249,160) yase=Hero('亚瑟',300,120)
houyi.one() print('亚瑟初始血量:',yase,sm)
print('生命为'houyi.sm) one()
print('攻击为'houyi.gj) one()
print('升级两次后,亚瑟血量为:',yase,sm)
\ No newline at end of file
\ 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