2018年12月21日

注册登陆(从文件中获取用户名密码)

摘要: 注册(regedit.py) 登陆(login.py) 阅读全文

posted @ 2018-12-21 21:30 耳矝 阅读(250) 评论(0) 推荐(0) 编辑

其他(for,enumerate,range)

摘要: # -*- coding: utf-8 -*-#__author__:Selid#__date__:2018/12/21# for,enumerate,range# for# msg='我的女神是景田python'# for item in msg:# print item# enumerate:枚 阅读全文

posted @ 2018-12-21 09:46 耳矝 阅读(126) 评论(0) 推荐(0) 编辑

集合set

摘要: # -*- coding: utf-8 -*-#__author__:Selid#__date__:2018/12/21# 集合的增删查# 增set={'selid','yinnan','yixing','jingtian'}# set.add('ddd')# set.update('selid') 阅读全文

posted @ 2018-12-21 09:32 耳矝 阅读(119) 评论(0) 推荐(0) 编辑

2018年12月20日

python3编码方式

摘要: ascii: A:00000001 8位 1个字节unicode A:00000000 00000000 00000000 00000001 32位 4个字节utf-8 A:0000 0010 8位 1个字节 中文:00000000 00000000 00000001 24位 3个字节gbk A:00000001 8位 1个字节 中文:00000000 ... 阅读全文

posted @ 2018-12-20 16:56 耳矝 阅读(173) 评论(0) 推荐(0) 编辑

2018年12月17日

Python2编码转换

摘要: 编码转换图(转自金角大王) 编码转换需要先转换为Unicode编码,然后在转换为需要转换的编码: 如:UTF-8转GBK:UTF-8-->>(decode)Unicode-->>(encode)GBK 阅读全文

posted @ 2018-12-17 21:47 耳矝 阅读(144) 评论(0) 推荐(0) 编辑

简单购物车

摘要: 购物车实现购买商品 阅读全文

posted @ 2018-12-17 17:45 耳矝 阅读(75) 评论(0) 推荐(0) 编辑

三级菜单

摘要: 三级标题 while循环实现三级菜单 # -*- coding: utf-8 -*- #__author__:Selid #__date__:2018/12/13 menu_all={ '甘肃省':{ '兰州市':{ '城关区':{}, '七里河区':{}, '安宁区':{}, '西固区':{}, 阅读全文

posted @ 2018-12-17 17:42 耳矝 阅读(73) 评论(0) 推荐(0) 编辑

导航