该文被密码保护。 阅读全文
posted @ 2019-06-12 10:07 dandan33 阅读(1) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-05-27 13:53 dandan33 阅读(2) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-05-27 11:48 dandan33 阅读(1) 评论(0) 推荐(0)
摘要: 4、start.py运行的启动程序,在这里启动 服务 #这是程序的入口文件,将启动服务的命令放里面 #增加根目录为环境变量,方便底层目录执行时目录错误import sys,osBASE_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__ 阅读全文
posted @ 2019-05-24 21:40 dandan33 阅读(141) 评论(0) 推荐(0)
摘要: 连接redis r = redis.Redis(host='118.24.3.40',password='HK139bc&*',db='13',decode_responses=True) r.set('lidandan','haha’) 发邮件: import yagmaill yagmall.S 阅读全文
posted @ 2019-05-17 08:12 dandan33 阅读(163) 评论(0) 推荐(0)
摘要: import os # os.walk()遍历文件夹下的所有文件# os.walk()获得三组数据(rootdir, dirname,filnames)def file_path(file_dir): for root, dirs, files in os.walk(file_dir): print 阅读全文
posted @ 2019-05-09 09:35 dandan33 阅读(96) 评论(0) 推荐(0)
摘要: func_map = { "1":add_product, "2":del_product, "3":edit_product, "4":show_product, "5":quit } for i in range(4): choice = input('请输入你的选择:\n' '1、添加商品\n 阅读全文
posted @ 2019-04-26 18:01 dandan33 阅读(92) 评论(0) 推荐(0)
摘要: 元组: 不可变的list: tuple 文件读写: r read 只能读不能写,文件不存在报错 w write 文件不存在时创建,清空原内容 a 追加模式 文件不存在会创建,不会清空原来内容,不可读 r+ w+ 文件不存在时创建,清空原内容 a+ f = open(‘users.txt') f.re 阅读全文
posted @ 2019-04-19 20:41 dandan33 阅读(94) 评论(0) 推荐(0)
摘要: 一、charles抓取web端https请求: 1:charles端help-》SSL proxying-》install charles root certificate on a mobile or remote browser ,找到有用信息:chls.pro/ssl 2:浏览器端输入:chl 阅读全文
posted @ 2019-03-29 21:56 dandan33 阅读(89) 评论(0) 推荐(0)