Count and Say (E) 题目 The count-and-say sequence is the sequence of integers with the first five terms as following: 1. 1 2. 11 3. 21 4. 1211 5. 111221 ...
分类:
其他好文 时间:
2020-06-27 10:01:45
阅读次数:
74
#count_01.py class Count: def add(self,a,b): return a + b #testcase_01.py import unittest from count_01 import Count #1、必须创建测试类,且必须继承unittest.TestCase ...
分类:
其他好文 时间:
2020-06-27 00:31:09
阅读次数:
78
reference: http://crasseux.com/books/ctutorial/argc-and-argv.html argc stands for argument counts. the "v" of argv[] stands for vector, and argv stand ...
分类:
其他好文 时间:
2020-06-26 20:16:17
阅读次数:
44
增、删、改通用方法: public static void updateobj(String sql,Object...args){ Connection connection=null; PreparedStatement pstm=null; try{ connection= JDBCUtill ...
分类:
其他好文 时间:
2020-06-26 16:32:33
阅读次数:
65
from django.db.models import F, Q, Max, Min, Avg, Count from django.http import HttpResponse from django.shortcuts import render, redirect from polls. ...
分类:
其他好文 时间:
2020-06-26 16:11:42
阅读次数:
45
ROW_NUMBER() OVER(PARTITION BY ... ORDER BY ...)RANK() OVER(PARTITION BY ... ORDER BY ...)DENSE_RANK() OVER(PARTITION BY ... ORDER BY ...)COUNT() OVER ...
分类:
其他好文 时间:
2020-06-26 13:07:50
阅读次数:
87
输入 随机序列长度,返回 随机序列 int * randpermC(int N) { int *arr = (int*)malloc(N * sizeof(int)); int *arr2 = (int*)malloc(N * sizeof(int)); int count = 0; memset( ...
分类:
编程语言 时间:
2020-06-26 10:30:24
阅读次数:
91
386. 最多有k个不同字符的最长子字符串 中文English 给定字符串S,找到最多有k个不同字符的最长子串T。 样例 样例 1: 输入: S = "eceba" 并且 k = 3 输出: 4 解释: T = "eceb" 样例 2: 输入: S = "WORLD" 并且 k = 4 输出: 4 ...
分类:
其他好文 时间:
2020-06-26 01:32:10
阅读次数:
85
参考资料: 杨旭视频:https://www.bilibili.com/video/BV1xa4y1v7rR?p=5 添加 输出执行的SQL语句 查询 模糊查询 ToList等执行对数据库的操作的方法 删除 修改 AsNoTracking() 添加 与数据库进行交互需要用到我们的数据库上下文,我的是 ...
分类:
其他好文 时间:
2020-06-26 01:30:44
阅读次数:
198
//for in可以遍历数组和对象,但是for of只能遍历数组,不可以遍历对象 var arr = [1,4,5,6,7,8]; var obj = { name:'za', age:19, say:function(){ console.log('hello') } } //for in循环出的 ...
分类:
其他好文 时间:
2020-06-25 23:40:15
阅读次数:
57