https://blog.csdn.net/zhangbijun1230/article/details/81608252 一、 数据库设计 1.选取合适的字段 tinyint、char 、varchar 尽可能地把字段设置为 NOT NULL 2.尽可能地使用 join 代替关联查询 3.使用索引 ...
分类:
数据库 时间:
2020-06-07 21:45:51
阅读次数:
84
1.设置静态文件 第一步:在项目目录下创建static文件夹,用于存放项目的静态文件,可以在该文件夹下面继续创建文件夹,用于静态文件的分类管理。 第二步:在settings.py下面添加以下代码。设置静态文件路径。 STATICFILES_DIRS = ( os.path.join(BASE_DIR ...
分类:
Web程序 时间:
2020-06-07 14:57:55
阅读次数:
70
base = [str(x) for x in range(10)] + [chr(x) for x in range(ord('A'), ord('A') + 6)] # ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C ...
分类:
其他好文 时间:
2020-06-07 13:15:30
阅读次数:
85
在postgres中,当max_connect设置过大,启动的时候会报错: FATAL: could not create semaphores: No space left on device 创建semaphores时空间参数不够,查询官网,有这么一段解释: HINT: This error d ...
分类:
数据库 时间:
2020-06-07 13:07:43
阅读次数:
98
package demo10; public class Node implements Comparable<Node> { Byte data; int weight; Node left; Node right; public Node(Byte data,int weight) { this ...
分类:
其他好文 时间:
2020-06-07 12:50:42
阅读次数:
56
一、flex布局 顶部,底部固定,中间自适应(中间左固定,右自适应)。 <body> <div class="container"> <div class="header"></div> <div class="content"> <div class="left"></div> <div clas ...
分类:
Web程序 时间:
2020-06-07 10:59:54
阅读次数:
64
IoC 和 AOP 被称为 Spring 两大基础模块,支撑着上层扩展的实现和运行。虽然 AOP 同样建立在 IoC 的实现基础之上,但是作为对 OOP(Object-Oriented Programing) 的补充,AOP(Aspect-Oriented Programming) 在程序设计领域拥 ...
分类:
编程语言 时间:
2020-06-07 01:01:18
阅读次数:
71
django如何使用第三方js库“My97DatePicker”官方链接:http://www.my97.net/demo/resource/left.htm一:界面展示二:下载My97DatePickerhttp://www.my97.net/down/My97DatePicker.zip三:在django中setting.py指定存放路径:STATIC_URL=‘/static/‘STATIC
分类:
Web程序 时间:
2020-06-06 23:21:16
阅读次数:
95
线程池-concurrent.futures模块 介绍 concurrent.futures模块提供了高度封装的异步调用接口 ThreadPoolExecutor:线程池,提供异步调用 ProcessPoolExecutor: 进程池,提供异步调用 方法 submit(fn, *args, **kw ...
分类:
编程语言 时间:
2020-06-06 21:45:10
阅读次数:
66
一、对之前的内容进行补充 1.两个方法:join() 将多个内容拼接起来,把列表转化成字符串 spilt() 将字符串转化成列表 2.关于删除 1)删除列表的全部内容 方法一:用clear()lis = ['李白','韩信','公孙离','马可波罗','云中君','裴钱虎']lis.clear()p ...
分类:
编程语言 时间:
2020-06-06 21:43:11
阅读次数:
76