Commit 7f8ea710 by BellCodeEditor

save project

parent 280f6195
Showing with 4 additions and 3 deletions
class Hero(): class Hero():
def __init__(self): def __init__(self,name,hp,attack):
self.level=1 self.level=1
self.hp=300 self.hp=300
self.attck=200 self.attck=attack
yase=Hero() yase=Hero('亚瑟',300,20)
print(yase.hp) print(yase.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