1. from here. diagonalReturn specified diagonals. diagflatCreate a 2-D array with the flattened input as a diagonal. traceSum along diagonals. triuUpp ...
分类:
编程语言 时间:
2020-01-19 09:24:38
阅读次数:
95
对于布尔类型boolean,永远只有true和false两个值。 布尔运算是一种关系运算,包括以下几类: 比较运算符:>,>=,<,<=,==,!= 与运算 && 或运算 || 非运算 ! 下面是一些示例: boolean isGreater = 5 > 3; // true int age = 1 ...
分类:
编程语言 时间:
2020-01-18 16:11:35
阅读次数:
87
A. Two distinct points You are given two segments l1;r1 and l2;r2 on the xx-axis. It is guaranteed that l1<r1l1<r1 and l2<r2l2<r2. Segments may inters ...
分类:
其他好文 时间:
2020-01-18 13:03:13
阅读次数:
98
(function () { const ua = navigator.userAgent; const android = ua.match(/Android \d\.\d/); // const ios = ua.match(/iPhone OS \d.\d.\d/); const androi... ...
分类:
移动开发 时间:
2020-01-17 20:58:57
阅读次数:
120
1 # 封装配置文件的代码 2 3 from configparser import ConfigParser 4 5 6 class HandleConfig(ConfigParser): 7 """ 8 定义处理配置文件的类 9 """ 10 11 def __init__(self): # 对 ...
分类:
其他好文 时间:
2020-01-14 23:44:22
阅读次数:
74
Given an integer n. No-Zero integer is a positive integer which doesn't contain any 0 in its decimal representation. Return a list of two integers [A, ...
分类:
其他好文 时间:
2020-01-14 09:17:43
阅读次数:
100
接上篇 swaggerUI提供了可视化界面帮助我们管理服务的访问路口,这就需要我们在代码中规范我们的书写格式。并且在swagger的界面上还能够模拟浏览器对服务进行访问。 接口总览 创建POST接口 创建一个保存用户的接口 创建一个PUT接口 修改用户接口 创建一个GET接口 创建获取用户信息的接口 ...
分类:
编程语言 时间:
2020-01-13 18:23:06
阅读次数:
90
https://www.jianshu.com/p/6a07fbd5b299 https://www.jianshu.com/p/c24bdf176f42?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes&utm_source= ...
分类:
其他好文 时间:
2020-01-13 14:37:32
阅读次数:
71
在数据库工具类编写的过程中,对事务的处理操作想避免各个原子操作的事务对象赋值重复操作,想对外暴露的方法为如下形式 public bool ExecuteTransition(Action TransitionAction, out string ExceptionStr) 外部传入的数据库操作都使用 ...
分类:
Web程序 时间:
2020-01-12 21:44:58
阅读次数:
112
无需修改实体和配置,在MySql中使用和SqlServer一致的并发控制。修改RowVersion类型不可取,修改为Timestamp更不可行。Sql Server的RowVersion生成一串唯一的二进制保证Row的版本,无关TimeStamp,更无论TimeStamp的精度问题。使用MySql触 ...
分类:
数据库 时间:
2020-01-11 09:18:53
阅读次数:
89