Commit cc883746 by BellCodeEditor

save project

parent e569ae44
Showing with 9 additions and 6 deletions
class Hero:
def __init__(self):
def __init__(self,name,hp,attack):
self.level=18
self.hp=4700
self.atrtack=329
kst=Hero()
print(yase.hp)
\ No newline at end of file
self.name=name
self.hp=hp
self.attack=attack
kst=Hero('奎桑提',4700,329)
sn=Hero('赛娜',2900,487)
print("kst" ,kst.hp)
print("sn",sn.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