Commit 53ce5b46 by BellCodeEditor

save project

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