复制
收藏
提问
简洁
class restaurant: def __init__(self,restaurant_name,cuisine_type): self.restaurant_name=restaurant_name self.cuisine_type=cuisine_type def describe_restaurant(self): print(self.restaurant_name+"is"+self.cuisine_type) def open_restaurant(self): print("now is open!") A1=restaurant("xyz","qinzhen") A1.describe_restaurant A1.open_restaurant
1个月前
全网
文档
学术
百科
知识库
回答简洁模式
深入研究一些
你觉得结果怎么样?