- 博客(3)
- 收藏
- 关注
原创 Python三级字典案例
#Author:zhou area = { "北京":{"海淀区":["上地","中关村"],"昌平区":["西二旗","回龙观"]}, "辽宁省":{"沈阳市":["大东区","和平区"],"大连市":["鱿鱼区","海蛎子区"]}, "黑龙江省":{"哈尔滨市":["道里区","道外区"],"七台河市":["桃山区","新兴区"]} } while True:
2018-01-31 16:11:35
467
原创 python简单购物车
#Author:zhou shopping = [("iphone",5500),("macbook",10000),("knife",15)] wallet = int(input("请输入你的金额:")) shopping2 = [] while True: for Index,value in enumerate(shopping): print("商品编号:{I
2018-01-31 16:10:49
395
原创 登陆系统-3次自动锁定
# -*- coding:utf-8 -*- #Author:zhou count = 0 while count 3: username = input("Username:") password = input('Password:') f2 = open('lock.txt', 'r') for line2 in f2: if usern
2018-01-31 16:09:54
796
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人