Commit 18f09c0d by BellCodeEditor

save project

parent 947234ea
Showing with 8 additions and 10 deletions
class GoodHero(): class Hero():
def __init__(self): def __init__(self,name,hp,attack):
self.level=99999 self.name=name
self.hp=99999 self.hp=hp
self.attack=99999 self.attack=attack
yase=Hero()
print(self.hp) yese=Hero("亚瑟",999999,99999)
print(self.attack) \ No newline at end of file
print(self.level)
\ 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