Commit 0b36bace by BellCodeEditor

save project

parent ff014d46
Showing with 10 additions and 0 deletions
class hero:
def __init__(self,name,hp,attack):
self.name=name
self.hp=hp
self.attack=attack
caiwenji=hero("蔡文姬",300,80)
yao=hero("瑶",350,150)
print(caiwenji.attack)
print(yao.hp)
\ 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