消息关闭
    暂无新消息!

不知道哪里错了,请各位大神指教

问题作者 : Lochead2017-08-29发布
class Restaurant():
def __int__(self,restaurant_name,cuisine_type,number_served):
self.restaurant_name=restaurant_name
self.cuisine_type=cuisine_type
self.number_served=number_served
def describe_restaurant(self):
print(self.restaurant_name.title()+"'s cuisine type is "+self.cuisine_type.title()+"the number of served is "+self.number_served.title())
your_restaurant=Restaurant("across","zhejiang","5")
your_restaurant.describe_restaurant()

1个回答