Commit f67330d2 by BellCodeEditor

save project

parent c1785dc9
Showing with 2 additions and 2 deletions
...@@ -10,6 +10,5 @@ class Hero: ...@@ -10,6 +10,5 @@ class Hero:
self.attack+=4 self.attack+=4
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
houyi=Hero('后羿',250,23) houyi=Hero('后羿',250,23)
upgrade() yase.upgrade()
upgrade()
print('伤害为',yase.attack) print('伤害为',yase.attack)
\ 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