摘要: 正则 常用方法 1.findall() 返回结果为列表 ''' 内容提取 ''' data='window.QRLogin.code = 200; window.QRLogin.uuid = "gbGEZLvmhQ==";' import re ret=re.findall('uuid = "(.* 阅读全文
posted @ 2019-10-05 19:13 jiuchen 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 二维码 二维码生成 1.用法 https://github.com/lincolnloop/python-qrcode 2.使用 简单实用 import qrcode # 二维码内容 data = "https://www.baidu.com" # 生成二维码 img = qrcode.make(d 阅读全文
posted @ 2019-10-05 14:56 jiuchen 阅读(1139) 评论(1) 推荐(0) 编辑
摘要: 轮询相关 用于消息和投票等 轮询 1.采用js 定时请求。 html <!DOCTYPE html> <html lang="zh-CN"> <head> <meta charset="UTF-8"> <title>Title</title> <meta name="viewport" conten 阅读全文
posted @ 2019-10-05 10:58 jiuchen 阅读(1285) 评论(0) 推荐(0) 编辑