会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
市丸银
知行合一
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
51
52
53
54
55
56
57
58
59
···
100
下一页
2020年4月13日
python 保护隐私
摘要: 保护用户隐私或打码 def mark_star(name: str, ratio=0.6): l = len(name) star_len = int(l * ratio) remain_len = l - star_len print(remain_len) if remain_len % 2 =
阅读全文
posted @ 2020-04-13 17:05 市丸银
阅读(337)
评论(0)
推荐(0)
2020年4月9日
django 模板
摘要: 接收数据 person_lst = [{"name": "wt", "age": 18}, {"name": "er", "age": 20}] 或 person_lst = (("wt", 18), ("er", 20))
阅读全文
posted @ 2020-04-09 22:19 市丸银
阅读(143)
评论(0)
推荐(0)
django 执行原生sql
摘要: https://www.cnblogs.com/413xiaol/p/6504856.html
阅读全文
posted @ 2020-04-09 10:47 市丸银
阅读(147)
评论(0)
推荐(0)
2020年4月8日
有趣的 网页 api
摘要: 1、彩虹屁 https://chp.shadiao.app/ 2、情话 https://api.lovelive.tools/api/SweetNothings/:count/Serialization/:serializationType 3、git地址 https://github.com/MZ
阅读全文
posted @ 2020-04-08 17:14 市丸银
阅读(624)
评论(0)
推荐(0)
django linux端脚本 web 可视化
摘要: 1、安装 Django # 大于2.0,小于2.1.5 dwebsocket paramiko 2、视图 from dwebsocket.decorators import accept_websocket import paramiko @accept_websocket def show_log
阅读全文
posted @ 2020-04-08 15:51 市丸银
阅读(342)
评论(0)
推荐(0)
2020年4月7日
django 分页实用
摘要: 1、分页器 class Pagination(object): def __init__(self, page_num, total_count, url_prefix, per_page=10, max_page=11): """ :param page_num: 当前页码数 :param tot
阅读全文
posted @ 2020-04-07 17:27 市丸银
阅读(163)
评论(0)
推荐(0)
2020年4月3日
wxpy
摘要: 测试,尚未开发完成 from __future__ import unicode_literals from threading import Timer from wxpy import * import requests from lxml import etree # 登录微信 bot = B
阅读全文
posted @ 2020-04-03 17:22 市丸银
阅读(390)
评论(0)
推荐(0)
2020年4月1日
django logger(工作中使用)
摘要: 1、setting.py 注意:创建log文件夹 # 存放Log的目录 LOGGING_DIR = os.path.join(BASE_DIR, 'log') LOGGING = { 'version': 1, 'disable_existing_loggers': True, 'formatter
阅读全文
posted @ 2020-04-01 10:13 市丸银
阅读(1198)
评论(0)
推荐(0)
2020年3月25日
python 破解验证码 baidu-api
摘要: 1、开启baidu-api的文字识别 2、查看官方文档 3、例子 import time import pymysql import requests from aip import AipOcr from config import dev_db from config import APP_ID
阅读全文
posted @ 2020-03-25 11:08 市丸银
阅读(458)
评论(0)
推荐(0)
python 图片相似算法
摘要: 1、安装 pip install opencv_python 2、具体代码(借鉴) import cv2 import numpy as np # 均值哈希算法 def aHash(img): # 缩放为8*8 img = cv2.resize(img, (8, 8), interpolation=
阅读全文
posted @ 2020-03-25 11:00 市丸银
阅读(361)
评论(0)
推荐(0)
上一页
1
···
51
52
53
54
55
56
57
58
59
···
100
下一页
公告