Commit e7a03230 by BellCodeEditor

auto save

parent f47689a4
Showing with 12 additions and 0 deletions
class KunKun():
def __init__(self,name,hp,level,attack):
self.name = name
self.level = level
self.hp = hp
self.attack = attack
ji = KunKun("鸡",250,2.5,1)
Kun = KunKun("坤",250,2.5,941)
print(Kun.name,hp,level,attack)
print(ji.name,hp,level,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