随笔分类 -  python入门到精通

摘要:import json from Db import Db db = Db() ''' 参考配置文件 { "file": "test.json", "path": "data", "table": "tk_bill", "comitcount": 50, "map": { "trade_id": " 阅读全文
posted @ 2020-06-06 17:48 wujf 阅读(1214) 评论(0) 推荐(0) 编辑
摘要:{ "file": "OrderDetail-2020-06-03.xls", "startRow": 1, "table": "tk_bill", "comitcount":50, "map": { "trade_id": "o", "tk_status": "p", "item_title": 阅读全文
posted @ 2020-06-06 14:35 wujf 阅读(511) 评论(0) 推荐(0) 编辑
摘要:1、定义路由app.py 2、定义main入口main.py 3、定义控制器testController.py 阅读全文
posted @ 2018-07-12 10:42 wujf 阅读(147) 评论(0) 推荐(0) 编辑
摘要:参考:https://www.cnblogs.com/rencm/p/6285304.html 阅读全文
posted @ 2018-04-20 16:06 wujf 阅读(303) 评论(0) 推荐(0) 编辑
摘要:采用xpath解析html 阅读全文
posted @ 2017-12-18 10:16 wujf 阅读(628) 评论(0) 推荐(0) 编辑
摘要:1 from Db import Db 2 from log import log 3 import xlwt 4 import xlrd 5 from xlutils.copy import copy 6 import sys 7 import os 8 from sched import sched 9 from datetime import datetime 10 im... 阅读全文
posted @ 2017-12-15 16:55 wujf 阅读(2014) 评论(0) 推荐(0) 编辑
摘要:经过分析,博客园登录时采用了JSEncrypt加密,因此登录请求时要用密文,涉及字段如下 input1:用户名对应的密文 input2:密码对应的密文 登录请求链接https://passport.cnblogs.com/user/signin 1 import urllib 2 import ht 阅读全文
posted @ 2017-07-12 18:11 wujf 阅读(609) 评论(1) 推荐(0) 编辑
摘要:复杂json的解析 阅读全文
posted @ 2017-02-27 16:51 wujf 阅读(193) 评论(0) 推荐(0) 编辑
摘要:1 ''' 2 写日志类 3 日志存放目录为当前应用程序的目录下的log目录中 4 日志产生规则:每小时产生一个文件 5 write by :wujf 6 2017-02-24 7 ''' 8 import sys 9 import os 10 import threading 11 import time 12 import traceback 13 14 mutex = ... 阅读全文
posted @ 2017-02-24 09:54 wujf 阅读(474) 评论(0) 推荐(0) 编辑
摘要:import pymysql import config ''' 1.0 简单封装 1.1 添加了insert_id属性,返回insert时返回的主键 1.2 添加了column属性,返回查询的column 1.3 添加一个insert 1.4 添加了一个insertList支持批量添加 ''' class Db: ''' 数据库操作类 Attributes: ... 阅读全文
posted @ 2017-02-20 18:04 wujf 阅读(266) 评论(0) 推荐(0) 编辑
摘要:作为一个java和.net程序员,我们来体验下面向对象 self类似于java的this关键字 阅读全文
posted @ 2017-02-20 18:01 wujf 阅读(152) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示