虚树 [SDOI2011]消耗战 板题,基本上是对着网上的板子敲的 #include <bits/stdc++.h> using namespace std; inline int read() { int out = 0; register char cc = getchar(); while ( ...
分类:
其他好文 时间:
2021-03-01 12:59:52
阅读次数:
0
一、流程控制 while循环:只要条件满足一直循环 read -p "请输入一个数字:" white_data while [ ${white_data} -lt 20 ] do echo ${white_data} white_data=$((white_data + 1)) done until ...
分类:
系统相关 时间:
2021-02-27 13:22:57
阅读次数:
0
package com.xiahong.base.Thread; //创建线程方式一:1.继承Thread类 2.重写run()方法 3.调用start 开启线程 public class ThreadTest extends Thread{ @Override public void run() ...
分类:
编程语言 时间:
2021-02-27 13:08:19
阅读次数:
0
题目要求 用shell实现,把一个文本文档中只有一个数字的行给打印出来。 参考答案 #!/bin/bash while read line do n=`echo $line |sed 's/[^0-9]//g'|wc -L` if [ $n -eq 1 ] then echo $line fi do ...
分类:
其他好文 时间:
2021-02-27 13:00:32
阅读次数:
0
问题记录 在完成项目的过程中,遇到了这样一个问题:读取application.yml信息时,报空指针异常。 application.yml配置如下: #Cacheable 注解默认生存时间(秒)cacheable: redis: ttl: 3600 在自定义的 PropertiesUtil类中,进行 ...
分类:
移动开发 时间:
2021-02-27 12:57:22
阅读次数:
0
在安装pygame时,抛出异常: raise ReadTimeoutError(self._pool, None, 'Read timed out.'),超时报错 在Windows下: C:\用户\Administrator\下,新建pip文件夹,在创建pip.ini文件(先创建txt,复制下面内容 ...
分类:
编程语言 时间:
2021-02-26 13:11:34
阅读次数:
0
最近项目里面有用到webapi接口作为回调页面,然后由页面展示回调内容 [HttpGet] [ActionName("ScanQRCodeCallBack")] public System.Net.Http.HttpResponseMessage ScanQRCodeCallBack(string ...
例如 _sopen_s 在磁盘空间不够的时候, 宏 errno 就会返回 ENOSPC(28) MSDN 文档时只提到以下错误码 errno valueCondition EACCES The given path is a directory, or the file is read-only, ...
为什么不用:pd.read_excel ? 因为 pd 使用 openpyxl 读取excel文件,有时候xlsx文件是由ApachIO产生的读取进去会出错,换个方式,用xlwings(基于pywin32?)。 传说会更快吗,没有测试速度,可以自行测试。 代码: import xlwings as ...
见博客:https://blog.csdn.net/jgm20475/article/details/80381650?utm_source=blogxgwz6 出现这种错误时会退出不了vim,那么出现这种错误的原因有: 1、该错误为当前用户没有权限对文件修改。 2、该文件没有正确保存退出,正在打开 ...
分类:
其他好文 时间:
2021-02-23 13:57:52
阅读次数:
0