Commit d7d2d066 by BellCodeEditor

auto save

parent 21fd2fff
Showing with 7 additions and 3 deletions
...@@ -5,6 +5,10 @@ class Hero: ...@@ -5,6 +5,10 @@ class Hero:
self.hp=hp self.hp=hp
self.attact=150 self.attact=150
yase=Hero('亚瑟',1,200) yase=Hero('亚瑟',1,200)
houyi=Hero('后羿',2,300) #houyi=Hero('后羿',2,300)
print(yase.hp) print(yase.hp)
print(houyi.hp) #print(houyi.hp)
\ No newline at end of file def upgrade(self):
self.leave=self.leave+1
self.hp=self.hp+100
print(yase.hp)
\ 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