Commit fbb77d18 by BellCodeEditor

save project

parent 7a0b53a6
Showing with 5 additions and 3 deletions
......@@ -4,14 +4,17 @@ class Hero:
self.name=name
self.hp=hp
self.attack=attack
def up(self):
self.level+=1
self.attack+=50
self.hp+=100
yase=Hero('yase',300,20)
hy=Hero('hy',250,23)
k=Hero('K',5600,199)
# print(yase.attack)
# print(hy.attack)
# print(k.attack)
del up():
def up():
yase.level+=1
yase.attack+=50
yase.hp+=100
\ 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