Commit 08a71071 by BellCodeEditor

save project

parent d6c81a0f
Showing with 18 additions and 0 deletions
class Hero:
def __init__(self,name,level,HP,attack):
self.name=''
self.level=1
self.HP=100
self.attack=20
GZA = Hero('GZA',-1000,0.0001,-1000000)
def LevelUp():
GZA.HP-=200
GZA.level+=1
GZA.attack-=100
for i in range(10):
LevelUp()
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