购物车续一

摘要: product={} product["001"]={"Name":"美式面包","Unit":"个","Price":10.00,"Class":"西点类","integral":20.00} product["002"]={"Name":"法式面包","Unit":"个","Price":15. 阅读全文
posted @ 2019-05-29 11:48 你的胸毛呢 阅读(79) 评论(0) 推荐(0) 编辑

购物车

摘要: a1=""; sum=0; shuru={ (‘短袖’,301), (‘长裤’,401), (‘球鞋’,1001), (‘帽子’,801), } a1=printf("输入shuru查看商品列表"); if a1 == "shuru" while true: printf("shuru"); choice = input(... 阅读全文
posted @ 2019-05-22 12:28 你的胸毛呢 阅读(103) 评论(0) 推荐(0) 编辑

#在26个大小写字母(52个),以及9个数字组成的字符列表中,随机生成10个8位密码

摘要: print(ord('A')) print(ord('a')) print(ord('0')) import random SecChar=[] for i in range(26): SecChar.append(chr(i+ord('A'))); for i in range(26): SecChar.append(chr(i+ord('a'))); fo... 阅读全文
posted @ 2019-05-15 11:34 你的胸毛呢 阅读(217) 评论(0) 推荐(0) 编辑