Commit 935e1b60 by BellCodeEditor

save project

parent 07ec4935
Showing with 6 additions and 5 deletions
class Hero: class Hero:
def __init__(self): def __init__(self,name,hp,attack):
self.level=50000 self.level=1
self.hp=30000000000000 self.hp=hp
self.attack=3000000 self.attack=attack
lijunyi = Hero() lijunyi = Hero('李俊颐',555,55555555555555)
print(lijunyi.attack) print(lijunyi.attack)
\ 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