Commit 09bb52f4 by BellCodeEditor

auto save

parent ae44de02
Showing with 2 additions and 12 deletions
class Hero:
def __init__(self,name,hp,attack):
self.level=1
self.name=name
self.hp=hp
self.attack=attack
yase=Hero('鼠王',300,30)
hy=Hero('老鼠',250,23)
k=Hero('齐涛',5600,200)
print(yase.attack)
print(hy.attack)
print(k.attack)
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