会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
东方不败--Never
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
7
8
9
10
11
12
13
14
15
下一页
2019年9月28日
mac+django(1.8.2)+uwsgi+nginx 部署
摘要: 一. uwsgi 安装 检验 配置uwsgi.ini 1. 安装 2. 检验 方法一(uwsgi启动文件): test.py内容如下: def application(env, start_response): start_response('200 OK', [('Content-Type','t
阅读全文
posted @ 2019-09-28 17:03 东方不败--Never
阅读(998)
评论(0)
推荐(0)
2019年9月5日
性能篇——函数调用结果的 LRU 缓存
摘要: 1. 应用场景: 多次调用同一函数 2. 普通写法: 结果: hellow:tomtime:2019-09-05 18:20:19.637917hellow:tomtime:2019-09-05 18:20:24.639228 3. 缓存写法: 结果: hellow:tomtime:2019-09-
阅读全文
posted @ 2019-09-05 18:47 东方不败--Never
阅读(565)
评论(0)
推荐(0)
数据驱动——ddt
摘要: 1: pip3 install ddt 2:
阅读全文
posted @ 2019-09-05 12:08 东方不败--Never
阅读(219)
评论(0)
推荐(0)
2019年9月1日
unittest 报告——HTMLTestRunner/BSTestRunner+代码覆盖率
摘要: 1. HTMLTestRunner.py 代码(python3)如下: python2: https://github.com/tungwaiyip/HTMLTestRunner 1 """ 2 A TestRunner for use with the Python unit testing fr
阅读全文
posted @ 2019-09-01 20:36 东方不败--Never
阅读(431)
评论(0)
推荐(0)
2019年8月31日
unittest 详解
摘要: 内容总括 一. 初始化 二. 执行顺序 三. 断言 四. 报告 五. 其他 1. setUp 与 tearDown 有几个test,就执行几次setUp 与 tearDown,浪费资源 有几个test,就执行几次setUp 与 tearDown,浪费资源 2. setUpClass 与 tearDo
阅读全文
posted @ 2019-08-31 23:04 东方不败--Never
阅读(482)
评论(0)
推荐(0)
2019年8月29日
python 获取安装包apk, ipa 信息
摘要: # -*- coding:utf-8 -*- import re import os import zipfile from biplist import * from androguard.core.bytecodes import apk class AnalyzePackage: def get_android_data(self, package_file): ...
阅读全文
posted @ 2019-08-29 19:11 东方不败--Never
阅读(1261)
评论(0)
推荐(0)
2019年8月6日
django 百度分页算法
摘要: 效果如下: 脚本: 1. 脚本结构 from django.utils.safestring import mark_safe class Page: ''' current_page: 当前页码 data_count: 数据总个数 per_page_count: 每页展示几个数据 pager_nu
阅读全文
posted @ 2019-08-06 22:22 东方不败--Never
阅读(248)
评论(0)
推荐(0)
Django model select的各种用法详解
摘要: 请跳转: https://ops-coffee.cn/s/JVh4UnS2Tql9gUVaBSoGuA 补充: 创建: 方法一: d = { "name": "he", "age" : 17, } rec = models.Student.objects.create(**d) print("rec
阅读全文
posted @ 2019-08-06 18:43 东方不败--Never
阅读(520)
评论(0)
推荐(0)
selenium 实战
摘要: iframe 多窗口 from selenium import webdriver from time import sleep driver = webdriver.Chrome() driver.get("http://mail.sina.com.cn/") driver.implicitly_
阅读全文
posted @ 2019-08-06 00:15 东方不败--Never
阅读(186)
评论(0)
推荐(0)
2019年8月5日
django 自带认证系统(login,logout,authenticate,login_required)
摘要: from django.contrib.auth import login,authenticate,logoutfrom django.contrib.auth.decorators import login_requiredsetting.py AUTH_USER_MODEL = 'mytest
阅读全文
posted @ 2019-08-05 10:38 东方不败--Never
阅读(1171)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
14
15
下一页
公告