摘要: else: break if a == "零食": print("1. 泡面 2元") print("2. 片片酥 4元") print("3. 火腿肠 3元") while True: a=input("输入编号购买商品,输入“B”返回类型选择:") if a=="1": geshu=int(in 阅读全文
posted @ 2019-05-29 11:28 凯恩的猫 阅读(120) 评论(0) 推荐(0)
摘要: shangp = [["芒果", 12],["西瓜", 20],["苹果", 6],["橙", 14],["葡萄", 20],["牛油果", 60]]xuanzhe = {}huafei = 0while True:choice = input("输入你所选择的商品编号>>:").strip()if 阅读全文
posted @ 2019-05-22 11:40 凯恩的猫 阅读(89) 评论(0) 推荐(0)
摘要: 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): SecC 阅读全文
posted @ 2019-05-15 11:34 凯恩的猫 阅读(80) 评论(0) 推荐(0)