Commit 770df037 by BellCodeEditor

save project

parent 73eee716
Showing with 2 additions and 10 deletions
......@@ -4,12 +4,4 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
yase=Hero("垭瑟",300,20)
houyi=Hero("后裔",240,23)
def fun():
yase.level+=1
yase.hp+=50
yase.attack+=2
yase.sss()
print(yase.hp)
print(houyi.hp)
\ No newline at end of file
\ 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