Commit 61e51293 by BellCodeEditor

save project

parent f31886e1
Showing with 10 additions and 2 deletions
c
\ No newline at end of file
class hero:
def __init__(self):
self.hp=300
self.attack=1000
self.lv=100
houyi=hero()
print('houyi的生命值为:',houyi.hp)
print('houyi的攻击力为:',houyi.attack)
print('houyi的等级为:',houyi.lv)
\ 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