Commit d46de046 by BellCodeEditor

save project

parent cf553455
Showing with 6 additions and 6 deletions
class Hero:
def __init__(UFO):
UFO.level=1
UFO.hp=300
UFO.attack=20
pengpenglaoshi=Hero
\ No newline at end of file
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
pengpenglaoshi=Hero()
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