Commit 7e280989 by BellCodeEditor

auto save

parent d1536a55
Showing with 12 additions and 0 deletions
class Cat:
def __init__(self,type,color,price):
self.footnum=4
self.type=type
self.color=color
self.price=price
def jiage(self,price):
print(price)
huahua=Cat('波斯','黑色','100')
huahua.jiage('100')
\ 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