//第一次尝试:#define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #define N 10 //正常排列的杨辉三角 int arr[N][2 * N - 1] = { 0 }; void YangHuiTrian ...
分类:
其他好文 时间:
2020-11-17 12:33:54
阅读次数:
7
Swagger-UI简介 Swagger-UI Swagger-UI是HTML, Javascript, CSS的一个集合,可以动态地根据注解生成在线API文档。 常用注解 @Api:用于修饰Controller类,生成Controller相关文档信息 @ApiOperation:用于修饰Contr ...
分类:
编程语言 时间:
2020-11-16 13:40:39
阅读次数:
13
题目大意:求公元前 4713 年 1 月 1 日 经过 r 天后的日期,公元 1582 年 10 月 4 日以前适用儒略历,公元 1582 年 10 月 15 日以后适用格里高利历 q 次询问,\(q\leq 10^5\) 这题就我目前所知有三种做法: ###做法一 大概就是先把儒略历和格里高利历的 ...
分类:
其他好文 时间:
2020-11-16 13:38:47
阅读次数:
8
###题目 Jump Game ###解题方法 这道题可以用贪心算法的思想解决,类似于Jump Game II。 ###代码 class Solution: def canJump(self, nums: List[int]) -> bool: curEnd = 0 curFarthest = 0 ...
分类:
其他好文 时间:
2020-11-12 13:58:21
阅读次数:
5
1、Processes and Threads In concurrent programming, there are two basic units of execution: processes and threads.(并发程序中,有2个基本的执行单位:进程、线程) 1.1、Processe ...
分类:
编程语言 时间:
2020-11-12 13:23:54
阅读次数:
6
参考:https://www.cnblogs.com/mithrilon/archive/2018/06/03/9082449.html http://blog.chinaunix.net/uid-25266990-id-2853835.html 1、如果发现Linux的文件不是utf8格式的文件, ...
分类:
系统相关 时间:
2020-11-11 16:37:25
阅读次数:
13
导出数据1.导出指定表的数据 mysqldump -t database -u username -ppassword --tables table_name1 table_name2 table_name3 >D:\db_script.sql 导出数据不导出结构 mysqldump -t 数据库名 ...
分类:
数据库 时间:
2020-11-10 10:55:30
阅读次数:
11
# 可变参数与关键词参数def can_form_triangle(a, b, c): print(f'a = {a}, b = {b}, c = {c}') return a + b > c and b + c > a and a + c > b'''1. 在没有特殊处理的情况下,函数的参数都是位 ...
分类:
编程语言 时间:
2020-11-08 17:09:37
阅读次数:
19
ubuntu docker login Error saving credentials: error storing credentials - err: exit status 1, out: xiami133 2019-06-28 19:38:28 3313 收藏 2 版权 Error sav ...
分类:
系统相关 时间:
2020-11-07 17:24:35
阅读次数:
21
问题描述 上次面试中被问到Mybatis中使用insert后返回自增id怎么操作,当时只知道可以返回被修改的行数,并不知道可以将插入/修改的内容的主键id映射到使用的对象中,后续查阅资料才知道有这样的功能。。 方法有两种 xml/注解 User.java: public class User { p ...
分类:
其他好文 时间:
2020-11-04 18:41:14
阅读次数:
21