Commit 43a6804b by BellCodeEditor

save project

parent e7a6730c
Showing with 7 additions and 2 deletions
......@@ -6,4 +6,10 @@ class Hero:
a.attack=attack
yasa=Hero("垭瑟",300,20)
houyi=Hero("后羿",250,23)
print(yasa.hp)
\ No newline at end of file
def ab():
yasa.level=yasa.level+1
yasa.hp=yasa.hp+50
yasa.attack=yasa.attack+4
ab()
print(yasa.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