Commit a187a719 by BellCodeEditor

auto save

parent 7dce1c82
Showing with 10 additions and 2 deletions
print(y
class Hero:
def __init__(self,name,hp,attack):
self.level = 1
self.level = name
self.hp = hp
self.attack = attack
yase=Hero("老六",500,70)
yase=Hero("老皮鸭",540,60)
print(yase.hp)
print(yase.hp)
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