Problem : Given a 32 bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note: Assume we are dealing with an environmen ...
分类:
其他好文 时间:
2020-03-27 19:48:05
阅读次数:
67
python3 + Vue 应用 AES 数据加密 高级加密标准(AES,Advanced Encryption Standard)为最常见的对称加密算法(微信小程序加密传输就是用这个加密算法的)。对称加密算法也就是加密和解密用相同的密钥,具有以下几个特点: python (ECB)应用 安装: W ...
分类:
编程语言 时间:
2020-03-27 14:28:02
阅读次数:
101
Q:Implement strStr(). Returns the index of the first occurrence of needle in haystack, or 1 if needle is not part of haystack. A:KMP算法 kmp算法的思想就是:在匹配过 ...
分类:
其他好文 时间:
2020-03-23 17:15:17
阅读次数:
59
第一步: NuGet管理安装log4net组件。 第二步:添加log4net.config配置文件 <?xml version="1.0" encoding="utf-8" ?> <log4net> <root> <level value="DEBUG"/> <appender-ref ref="S ...
分类:
Web程序 时间:
2020-03-23 15:28:46
阅读次数:
267
定义接口 @FunctionalInterface public interface LambdaNoneReturnNoneParameter { void test(); } @FunctionalInterface public interface LambdaNoneReturnSingle ...
分类:
其他好文 时间:
2020-03-22 19:34:14
阅读次数:
70
idea连接MySQL数据库报时区问题: Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually. 解决办法: 登录MySQL,设置时区: set global ...
分类:
数据库 时间:
2020-03-21 23:41:58
阅读次数:
370
R进行数据分析 1. 排序 sort(x, decreasing = ): 返回排序好的数据 order(x, decreasing = ): 返回排序好的数据的索引 例子: v = c(2, 9, 1, 45, -3, 19, -5, 6) sort(v) # returns ordered v ...
分类:
其他好文 时间:
2020-03-21 21:49:39
阅读次数:
60
题目: Given a 32-bit signed integer, reverse digits of an integer. Example 1: Input: 123 Output: 321 Example 2: Input: -123 Output: -321 Example 3: Inpu ...
分类:
其他好文 时间:
2020-03-18 23:36:39
阅读次数:
72
/// <summary> /// 取时间戳,高并发情况下会有重复。想要解决这问题请使用sleep线程睡眠1毫秒。 /// </summary> /// <param name="AccurateToMilliseconds">精确到毫秒</param> /// <returns>返回一个长整数时间 ...
/// <summary> /// 获取webbrowser中html元素的屏幕坐标 /// </summary> /// <param name="webBrowser"></param> /// <param name="htmlElem"></param> /// <returns></ret ...
分类:
Web程序 时间:
2020-03-17 19:07:24
阅读次数:
66