Commit cb3bafc1 by BellCodeEditor

save project

parent 1fcd98bf
Showing with 10 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attack):
self.hp = hp
self.name = name
self.attack = attack
yase = Hero("houyi",200,2453)
def upgrade(self):
self.level=self.leal+111111111111
self.hp=self.hp+10000000000
self.attack=self.attack+9999999999999999999
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