Commit 500c7d40 by BellCodeEditor

save project

parent 859f3ddd
Showing with 8 additions and 7 deletions
# #
class Hero: class Hero:
def__init__(self): def__init__(self):
self.level=999999999999999999999999999999999999 self.level=999999999999999999999999999999999999999999999999999999999999999
self.hp=3000000000000000000000000000000000000000000000 self.name=name
self.attack=3222222222222222222222222222222222222222222222 self.hp=hp
self.attack=attack
yase= Hero() yase=Hero("亚瑟",300,2)
print(yase) houyi=Hero("后羿",240,200)
\ No newline at end of file print("亚瑟的血量为:",yase.hp)
print("后羿的血量为:",houyi.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