Commit 670ae996 by BellCodeEditor

save project

parent f47689a4
Showing with 15 additions and 0 deletions
class Hero:
def __init__(self):
self.level = 1
self.hp = 685
self.attack = 485
self.mp = 0
self.defense = 14
yunying = Hero()
print("yunying好肉",yunying.hp)
print("yunying好强",yunying.attack)
print("yunying物理",yunying.mp)
print("yunying流批",yunying.defense)
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