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) 编辑
  2017年11月7日
摘要: # Author:Eric Zhao# -*- coding:utf-8 -*-'''需求:启动程序后,让用户输入工资,然后打印商品列表允许用户根据商品编号购买商品用户选择商品后,检测余额是否够,够就直接扣款,不够就提醒 可随时退出,退出时,打印已购买商品和余额'''product_list = [ 阅读全文
posted @ 2017-11-07 22:38 跃渊而出 阅读(351) 评论(0) 推荐(0) 编辑
  2017年10月31日
摘要: # 使用 Python 编写登陆接口# Create Date: 2017.10.31 Tuesday# Author: Eric Zhao# -*- coding:utf-8 -*-'''编写登陆接口输入用户名密码认证成功后显示欢迎信息输错三次后锁定 '''login_user = input(' 阅读全文
posted @ 2017-10-31 23:14 跃渊而出 阅读(186) 评论(0) 推荐(0) 编辑