05 2019 档案
编写类-用户类
摘要:# 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 跃渊而出 阅读(215) 评论(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 跃渊而出 阅读(355) 评论(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 跃渊而出 阅读(199) 评论(0) 推荐(0)