建表 class User(models.Model) name = models.CharField(max_length) age = models.InterField() register_time = models.DateField() ## models.DateTimeField() ...
分类:
其他好文 时间:
2021-01-12 11:01:49
阅读次数:
0
Word Ladder (H) 题目 Given two words beginWord and endWord, and a dictionary wordList, return the length of the shortest transformation sequence from be ...
分类:
其他好文 时间:
2021-01-12 10:54:49
阅读次数:
0
//方法1let persion = { name:'json', age:18, adress:'ftq' } for( a[a.length] in persion){console.log(a)} // ["name"]["name", "age"]["name", "age", "adres ...
分类:
其他好文 时间:
2021-01-11 11:11:00
阅读次数:
0
RsaBaseParameters using System.Security.Cryptography; using System.Text; namespace Benchint.Util.Rsa.Models { /// <summary> /// RSA基础参数 /// </summary> ...
分类:
其他好文 时间:
2021-01-11 10:35:30
阅读次数:
0
给定一个数组 nums,编写一个函数将所有 0 移动到数组的末尾,同时保持非零元素的相对顺序。 示例: 输入: [0,1,0,3,12] 输出: [1,3,12,0,0] 说明: 必须在原数组上操作,不能拷贝额外的数组。 尽量减少操作次数。 C 代码 public class Solution { ...
分类:
移动开发 时间:
2021-01-08 11:36:01
阅读次数:
0
alert(CheckObjTime2('2021-1')) alert(CheckObjTime2('2021-1-1')) alert('好了') var time_obj = '2021-1'; //格式化为三位 var d_001 = time_obj.split('-'); if (d_0 ...
分类:
Web程序 时间:
2021-01-08 11:35:41
阅读次数:
0
1.获取字符串长度 1.1.获取字符串var的长度——${#var} 2.按下标截取字符串(包含起始字符) 2.1.从左数下标index(起始为0)开始向右截取字符串var长度为length的部分——${var:index:length} 2.2.从左数下标index(起始为0)开始向右截取字符串v ...
分类:
其他好文 时间:
2021-01-08 11:30:24
阅读次数:
0
Introduction R 是一门用于 Data Analysis 和 Graphic 的语言。R语言同时也是一门语法极不严格的语言。 Global Method assign ← mean, sum, sqrt length sort seq(Python中的Range) sep(分割) rep ...
分类:
其他好文 时间:
2021-01-08 11:24:28
阅读次数:
0
在jdk1.7中 哈希函数为 static int indexFor(int h,int length){ return h & (length-1); } 理由一:充分利用数组空间 假设长度不是2的幂次方 长度为基数 (假设长度为5) 01010101 01010101 01010101 0101 ...
分类:
其他好文 时间:
2021-01-07 12:43:34
阅读次数:
0
HTTP是什么? HTTP是超文本传输协议 超文本+传输+协议 HTTP常见状态码有哪些? HTTP常见字段有哪些? HOST字段:客户端发送请求时,用来指定服务器的域名 --HOST:www.A.com Content-Length字段:服务器在返回数据时,会有Content-Length字段,表 ...
分类:
Web程序 时间:
2021-01-07 11:56:46
阅读次数:
0