Commit 625af877 by BellCodeEditor

save project

parent 9cd7beed
Showing with 11 additions and 0 deletions
class Hero:
def __init__(self,name,hp,attack)
self.level=name
self.hp=hp
self.attack=attack
kunkun=Hero('坤坤'300,80)
kunba=Hero('坤八'250,99)
print(kunkun.level)
print(kunkun.hp)
print(kunkun.attack)
\ 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