练习题-类-给属性指定默认值

截图来自<python编程:从入门到实践> 我的代码如下: class Restaurant():     def __init__(self,restaurant_name,cuisine_type):                  self.restaurant_name=restaurant_name         slef.cuisine_type=cuisine_type     
相关文章
相关标签/搜索