Commit 4d538a58 by BellCodeEditor

save project

parent 491490de
Showing with 8 additions and 5 deletions
class hero: class hero:
def __init__(self): def __init__(self):
self.level = 1 self.level = 10
self.hp = 300 self.hp = 99999
self.attack = 20 self.attack = 999
yase = hero()
print("卢本伟的血量为:",yase.hp)
print("卢本伟的攻击力为:",yase.attack)
yase = hero
\ 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