Commit 59c5948f by BellCodeEditor

save project

parent e9f6f8fd
Showing with 14 additions and 0 deletions
class Hero(object):
def __init__(self, name,hp,attack):
self.level = 1
self.hp = hp
self.attack = attack
self.name = name
yase = Hero("垭瑟",300000000000,1000000000000000)
houyi= Hero("后羿",100000000000000000000000000000000000000000000000000000000000000000000000,10)
print(yase.hp)
print(houyi.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