输入要使用sc.next(), 如果使用sc.nextLine().split(" ") 将会超时!!! import java.util.*; public class Main { static long[] p, h; static long get(int l, int r) { /*求字符 ...
分类:
其他好文 时间:
2020-06-03 14:06:33
阅读次数:
85
例一(类初始化错误用法): struct thing { char * pn; int m; }; thing amabob = {"wodget", -23}; // valid initialization Stock hot = {"Sukie's Autos, Inc.", 200, 50. ...
分类:
编程语言 时间:
2020-06-03 13:57:40
阅读次数:
83
BigInteger Struct (System.Numerics) | Microsoft Docs https://docs.microsoft.com/en-us/dotnet/api/system.numerics.biginteger?view=netcore-3.1 Remarks T ...
分类:
其他好文 时间:
2020-06-03 13:27:50
阅读次数:
104
循环结构的基本组成部分: 1、初始化语句:最先执行,只执行一次 2、条件判断:成立则循环继续,不成立则退出此次循环 3、循环体:循环语句 4、步进语句 1、for 循环 for (int i = 0; i < 3; i++) { System.out.println("坚持!!!"); } 2、wh ...
分类:
编程语言 时间:
2020-06-03 00:48:10
阅读次数:
80
搭建企业级私有仓库Harbor 安装需求 python版本 >= 2.7 Docker引擎版本 >= 1.10 docker-compose版本 >= 1.6.0 安装环境 一、Python安装 yum -y install python3 二、Docker上章节中已经安装,不再赘述 三、docke ...
分类:
Web程序 时间:
2020-06-02 22:53:05
阅读次数:
91
import sys import time def get_terminal_size(): """Get (width, height) of the current terminal.""" try: import fcntl, termios, struct # fcntl module o ...
分类:
编程语言 时间:
2020-06-02 20:35:52
阅读次数:
82
RandomForestRegressor class sklearn.ensemble.RandomForestRegressor (n_estimators=’warn’, criterion=’mse’, max_depth=None, min_samples_split=2, min_sam ...
分类:
其他好文 时间:
2020-06-02 19:17:09
阅读次数:
286
解决端口占用 Windows上端口占用会提示诸如以下错误: Fatal error. can't bind to 127.0.0.1:10809: There may be another Privoxy or some other proxy running on port 10809 解决该异常 ...
Ajax初识 """ 异步提交 局部刷新 例子:github注册 动态获取用户名实时的跟后端确认并实时展示的前端(局部刷新) 朝发送请求的方式 1.浏览器地址栏直接输入url回车 GET请求 2.a标签href属性 GET请求 3.form表单 GET请求/POST请求 4.ajax GET请求/P ...
分类:
Web程序 时间:
2020-06-02 18:56:22
阅读次数:
64
url上的中文字符是ISO-8859-1。后台获取中文乱码解决问题。 需要转码 public static String changeCharset(String str, String defaultValue) { if (str != null) { try { if ((StringUtil ...
分类:
Web程序 时间:
2020-06-02 18:50:56
阅读次数:
116