摘要: 【练习题1】实现一个整数加法计算器如 content = input(">>> ") # 5+9 , 6+4 count=0 while 1: content=input('>>>') s1 = content.split('+') print(s1) count = 0 for i in s1: 阅读全文
posted @ 2019-04-30 11:33 hanfe1 阅读(1098) 评论(0) 推荐(0)
摘要: 实现如下功能: #!/usr/bin/env python3 # Author:zhangyang # --*-- coding: utf-8 --*-- import os def file_test(): with open("The salary management", 'r+', enco 阅读全文
posted @ 2019-04-30 11:17 hanfe1 阅读(352) 评论(0) 推荐(0)
摘要: 购物车程序:1、启动程序后,输入用户名密码后,如果是第一 次登录,让用户输入工资,然后打印商品列表2、允许用户根据商品编号购买商品3、用户选择商品后,检测余额是否够,够就直接扣款,不够就提醒4、可随时退出,退出时,打印已购买商品和余额5、在用户使用过程中,关键输出, 如余额,商品已加入购物车等消息, 阅读全文
posted @ 2019-04-30 11:15 hanfe1 阅读(257) 评论(0) 推荐(0)