Commit 2bb75fbb by BellCodeEditor

save project

parent b41fb81d
Showing with 11 additions and 0 deletions
class tnak:
def __init__(self,name,age,level,skill):
self.name=name
self.age=age
self.level=level
self.skill=skill
kai=tnak('铠',1000,10,'吞噬万物')
lianpo=tnak('廉颇',40,20,'冲撞')
print(kai.skill)
print(lianpo.skill)
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