随笔分类 -  作业小练习

摘要:product_list = [('iphone',5888),('macbook',12000),('meilv',998),('pen',5),('beizi',1),('text',25)] shoping_list=[] money =input("请充值") if money.isdigit(): money=int(money) while True: ... 阅读全文
posted @ 2018-03-17 20:44 人无远虑 阅读(159) 评论(3) 推荐(0)
摘要:用户登陆(三次机会重试) 阅读全文
posted @ 2018-03-16 12:53 人无远虑 阅读(217) 评论(0) 推荐(0)
摘要:i = 0 b = 0 list_1 =list() # print(type(list_1)) while i<99: i +=1 list_1.append(i) b =-(i+1) list_1.append(b) print(list_1) i += 1 ret =sum(list_1) print(ret) 求1-2+3-4+5 ... 阅读全文
posted @ 2018-03-16 11:17 人无远虑 阅读(225) 评论(0) 推荐(0)
摘要:3、输出 1-100 内的所有奇数 4、输出 1-100 内的所有偶数 阅读全文
posted @ 2018-03-16 11:00 人无远虑 阅读(295) 评论(0) 推荐(0)
摘要:2、求1-100的所有数的和 阅读全文
posted @ 2018-03-16 10:19 人无远虑 阅读(240) 评论(1) 推荐(0)
摘要:1、使用while循环输入 1 2 3 4 5 6 8 9 10 阅读全文
posted @ 2018-03-16 09:55 人无远虑 阅读(306) 评论(0) 推荐(0)