Commit 0cc02094 by BellCodeEditor

save project

parent 2017a46e
Showing with 7 additions and 7 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=100 self.name=name
self.hp=300 self.hp=hp
self.attack=1000000000000000000000000000000000000000000000000000000000000000 self.attack=attack
kai=Hero() kai=Person("凯"240300)
print(kai.attack) yase=Person("亚瑟"300300)
\ No newline at end of file \ 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