2019年5月24日
摘要: # Author Eric Zhao # -*- coding:utf-8 -*-class User(): ''' 用户类 ''' def __init__(self,first_name,last_name,username,email,location): ''' 初始化属性 first_na 阅读全文
posted @ 2019-05-24 14:13 跃渊而出 阅读(207) 评论(0) 推荐(0) 编辑
摘要: # Author:Eric Zhao# -*- coding:utf-8 -*-'一个可用用于表示汽车的类'class Car(): def __init__(self,make,model,year): '初始化描述汽车的属性' self.make = make self.model = mode 阅读全文
posted @ 2019-05-24 14:09 跃渊而出 阅读(340) 评论(0) 推荐(0) 编辑
摘要: # Author Eric Zhao # -*- coding:utf-8 -*-class Restaurant(): """ 餐馆类 """ def __init__(self,restaurant_name,cuisine_type): """ 始化属性 restaurant,cuisine_ 阅读全文
posted @ 2019-05-24 14:07 跃渊而出 阅读(192) 评论(0) 推荐(0) 编辑
摘要: # Author Eric Zhao # -*- coding:utf-8 -*-class Restaurant(): """ 餐馆类 """ def __init__(self,restaurant_name,cuisine_type): """ 始化属性 restaurant,cuisine_ 阅读全文
posted @ 2019-05-24 14:04 跃渊而出 阅读(39) 评论(0) 推荐(0) 编辑