Commit c1c3b2ef by BellCodeEditor

auto save

parent d6c81a0f
Showing with 11 additions and 0 deletions
class daye:
def __init__(self,name,hp,attack,):
self.name=name
self.hp=hp
self.attack=attack
nakelulu=daye("娜可露露",784,243)
hanxin=daye("韩信",664,214)
libai=daye("李白",671,184)
print(nakelulu.name,nakelulu.hp,nakelulu.attack)
print(hanxin.name,hanxin.hp,hanxin.attack)
print(libai.name,libai.hp,libai.attack)
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