Commit 18f09c0d by BellCodeEditor

save project

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