阅读背景:

《Python编程 从入门到实践》第九章课后习题

来源:互联网 

9-1

class Restaurant():
    def __init__(self, r_name, c_type):
	self.restaurant_name = r_name
	self.cuisine_type = c_type
		
    def describe_restaurant(self):
	print("Restaurant Name: " + self.restaurant_name + "\nCuisine Type: " + self.cuisine_type)
	
    def open_restaurant(self):
	print("The restaurant is open. ")class Restaurant():
    def __init__(self



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: