Commit ec28f9eb by BellCodeEditor

save project

parent 716c4607
Showing with 6 additions and 0 deletions
......@@ -6,5 +6,11 @@ class Hero:
self.nane=name
yase=Hero("A",300,20)
houy=Hero("B",240,27)
def a():
houy.hp +=1
houy.attack+=1
houy.level+=3
a()
print(yase.hp)
print(houy.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