Commit cc883746 by BellCodeEditor

save project

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