Commit 3e9c186d by BellCodeEditor

save project

parent f0005049
Showing with 18 additions and 2 deletions
cl
\ No newline at end of file
class hero:
def __init__(self,sex,hp,attack):
self.sex = sex
self.hp = hp
self.attack = attack
yase = hero("亚瑟",300,20)
print(yase.sex)
class hero:
def __init__(self,sex,hp,attack):
self.sex = sex
self.hp = hp
self.attack = attack
yase = hero("后羿",256,25)
print(yase.sex)
\ 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