Commit 6b1d1ab7 by BellCodeEditor

save project

parent ef39df1c
Showing with 8 additions and 4 deletions
class hero: class Hero:
def __init__(self): def __init__(self):
self.level=1 self.level=9999999999
self.hp=300 self.hp=30000000000000
self.attack=2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 self.attack=9999999999999999999999999999999999999999
yugonglian=Hero():
print("yugonglian的血量为:"yugonglian.hp)
print("yugonglian的等级为:"yugonglian.level)
print("yugonglian的攻击力为:"yugonglian.attack)
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