Commit 12e1887e by BellCodeEditor

save project

parent 70850cf8
Showing with 10 additions and 0 deletions
class hero:
def __init__(self,name,kind,hp,attck):
self.level = 1
self.name=name
self.kind=kind
self.hp=hp
self.attck=attck
yase = hero('亚瑟','战士',300,15)
print(yase.kind)
\ 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