Commit 935e1b60 by BellCodeEditor

save project

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