Commit e0059f57 by BellCodeEditor

auto save

parent d6c81a0f
Showing with 13 additions and 0 deletions
class Dog:
def __ init __ (self,color,price):
self.leg=4
self.eye=2
# self.ear=2
self.color=color
self.price=price
def __ jg __ (self):
print("狗的价格为",self.price)
a=Dog("红色",100)
a.jg()
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