mysql常见数据类型 1、数值型 1.1、整型 特点: a.如果不设置无符号还是有符号,默认是有符号,如果想设置无符号,需要添加 unsigned关键词 b.如果插入的数值超出了整型的范围,会报 out of range 异常,并且插入临界值 c.如果不设置长度,会有默认的长度 d.长度代表了显示 ...
分类:
数据库 时间:
2020-03-30 21:24:51
阅读次数:
77
基本配置 资源压缩相关模块 | 模块 | 说明 | | | | | ngx_http_gzip_module | 提供基础的gzip支持 | | ngx_http_gzip_static_module | 在向客户端返回常规文件之前,先查找是否存在该常规文件的.gz文件,有的话就直接返回.gz文件 ...
分类:
其他好文 时间:
2020-03-30 20:01:09
阅读次数:
72
实现冒牌排序的程序如下: def bubble_sort(alist): n=len(alist) for k in range(n-1):#最后最小的一个数字不用排序,因为已经是最小了 for i in range(n-1-k):#用k来限定每一个小冒泡排序的区间 if(alist[i]>alis ...
分类:
编程语言 时间:
2020-03-30 15:57:00
阅读次数:
64
程序如下: def selection_sort(alist): n=len(alist) for i in range(n-1):#到n-1停止是因为最后一个肯定是最大的无须比较 min_index=i for k in range(i+1,n):#到n停止是因为到最后一个不一定是最小的,所以需要 ...
分类:
编程语言 时间:
2020-03-30 15:52:38
阅读次数:
58
People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earth is called "jan, feb, mar, apr, m ...
分类:
其他好文 时间:
2020-03-30 15:49:03
阅读次数:
81
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:
其他好文 时间:
2020-03-30 12:40:30
阅读次数:
66
import math import time s=10 t=time.process_time() for i in range(s+1): a,b='**'*i,'..'*(s-i) c=(i/s)*100 π=4*(4*math.atan(1/5)-math.atan(1/239)) prin ...
分类:
其他好文 时间:
2020-03-30 09:58:21
阅读次数:
70
leetcode 1067. Digit Count in Range leetcode 233. Number of Digit One leetcode 902. Numbers At Most N Given Digit Set leetcode 1088. Confusing Number ...
分类:
其他好文 时间:
2020-03-30 09:44:59
阅读次数:
66
<audio> 标签属性:src:音乐的URLpreload:预加载autoplay:自动播放loop:循环播放controls:浏览器自带的控制条 1 <audioid="media"src="http://www.abc.com/test.mp3"controls></audio> <video ...
分类:
其他好文 时间:
2020-03-29 22:38:29
阅读次数:
330
有进度条圆周率计算: 代码: import math import time scale=14 s = 1 m = 2 print("执行开始".center(scale//2, "-")) start = time.perf_counter() for i in range(scale+1): s ...
分类:
其他好文 时间:
2020-03-29 19:56:11
阅读次数:
72