Commit 6c8767bd by BellCodeEditor

save project

parent 299f25f3
Showing with 2 additions and 1 deletions
......@@ -11,7 +11,7 @@ class Hero:
self.hp=self.hp+50
yase=Hero('yase',300,20)
hy=Hero('hy',300,20)
hy.upgrade()
yase.upgrade()
print('等级',yase.level)
print('血量',yase.hp)
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