Commit 34f08ed7 by BellCodeEditor

save project

parent bd0e29fc
Showing with 10 additions and 4 deletions
......@@ -4,7 +4,13 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("亚瑟",300,20)
hoyi=Hero("后裔",250,23)
yase = Hero("亚瑟",300,20)
hoyi = Hero("后裔",250,23)
print(yase.hp)
print(hoyi.hp)
\ No newline at end of file
print(hoyi.hp)
def shenji():
yase.level=yase.levenl+1
yase.attack=yase.attack+999
yase.hp=yase.hp+999999999999999999999999999999999999999999999999999999999999999999999999
shengji()
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