Commit 506b3f98 by BellCodeEditor

auto save

parent 41c80b5f
Showing with 17 additions and 0 deletions
class Hero:
def __init__(self):
self.lever=1
self.hp=100
self.attack=5
sihan=Hero()
chengji=Hero()
chengji.hp=60
sihan.hp=50
sihan.lever=5
print(chengji.lever)
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