摘要:
Java8在 lambda 表达式中使用局部变量会提示:Local variable flag defined in an enclosing scope must be final or effectively final这是因为你使用的局部变量在初始化后,又对这个变量进行了赋值。赋值后会认为这个 阅读全文
摘要:
public class Java8Test { public static void main(String[] args) { Person p1 = new Person("麻子", 31); Person p2 = new Person("李四", 20); Person p3 = new 阅读全文
摘要:
t re import time from pprint import pprint import pandas as pd import requests class Snowball: xq = 'https://xueqiu.com' # 雪球自选股列表相关json url = {'get': 阅读全文
摘要:
错误示例 假设 第一个参数的 元素个数为 3 // 实际执行的时候 会变成 3 条语句 // delete from sheet where id IN (1) // delete from sheet where id IN (2) // delete from sheet where id IN 阅读全文
摘要:
MySQL中常用到判断符号,而不等于是比较常用的符号,下面讲解以下三种不等于符号符号 意义<> 不等于的最早用法,可移植性优于下面两种!= 后来MySQL添加上的,类似于Java等编程语言中的不等于not in not in后面加上数据,表示不在该数据里面MySQL中推荐使用<>来表示不等于,为什么 阅读全文
摘要:
如果 Field.isAccessible 已经过时,则使用 Field.canAccess官方Apiboolean Field.canAccess(Object obj) Object obj : an instance object of the declaring class of this 阅读全文
摘要:
UPDATE I will get a similar warning with constructors for other primitive wrapper types; e.g. The constructor Boolean(boolean) is deprecated The const 阅读全文
摘要:
isAccessible is deprecated from JDK-9+ Oracle#doc#isAccessible Example if (forceAccess && !field.isAccessible()) { field.setAccessible(true); } , sugg 阅读全文
摘要:
公司让写一个报表,有如下sql:SELECT id,time FROM ( SELECT aid AS id,atime AS time FROM a UNION ALL SELECT bid AS id,btime AS time FROM b) AS a然后查处如下记录:[ { "id":2, 阅读全文
摘要:
有些时候取数据时的排序规则需要为自己的指定规则,如 1>3>2>0这种,所以需要在取数据时指定排序规则,具体方法如下: SELECT `user` FROM user WHERE `user_status` in (0,1,2,3) ORDER BY FIELD(`user_status`,1,0, 阅读全文
摘要:
The following table lists all system variables applicable within mysqld. The table lists command-line options (Cmd-line), options valid in configurati 阅读全文