Commit 53ce5b46 by BellCodeEditor

save project

parent 64e29d15
Showing with 6 additions and 6 deletions
class Hero:
def __init__(self):
self.hp = 1000
def __init__(self,name,hp,attack):
self.hp = hp
self.name = name
self.level = 1
self.attack = 205
lubanqihao = Hero()
print(lubanqihao.hp)
\ No newline at end of file
self.attack = attack
lubanqihao = Hero("鲁班七号",10000000000000000000000000000000000000000000000000000,2000000000000022323221334555000000000025252530000000000000000000000000000000000)
print(lubanqihao.hp)
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