Commit 93ab2cf6 by BellCodeEditor

save project

parent b3d175be
Showing with 2 additions and 0 deletions
...@@ -10,4 +10,6 @@ class Hero: ...@@ -10,4 +10,6 @@ class Hero:
self.attack=yase.attack+4 self.attack=yase.attack+4
yase=Hero('亚瑟',300,20) yase=Hero('亚瑟',300,20)
yase.upgrand() yase.upgrand()
print('亚瑟的血量:',yase.hp)
print('后翼的功击力:',hy.attack)
print('亚瑟的升级后的血量:',yase.hp) print('亚瑟的升级后的血量:',yase.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