Commit 1975b034 by BellCodeEditor

auto save

parent 53461729
Showing with 17 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 num(self):
print(self.price)
cat=Cat('buou','white',727)
#def num():
#print(cat.price)
cat.num()
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