Commit 500c7d40 by BellCodeEditor

save project

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