namespace D{ class cnum{ public: double Val; cnum(double n): Val(n){ } operator double() { return this->Val; } }; class num{ public: double Val; num(d ...
分类:
其他好文 时间:
2021-06-09 15:24:44
阅读次数:
0
传统多页面应用: html中的css,js文件一般通过加版本号来更新,但html页面修改后部分机型也会有缓存,导致修改不生效。 解决办法: 在nginx配置,访问html文件时,强制不缓存: 设置所有的html文件强制不缓存: location ~ .*.(htm|html)?$ { add_hea ...
分类:
移动开发 时间:
2021-06-09 15:24:30
阅读次数:
0
Python3 1. 命令行快速搭建本地http服务器 python3 -m http.server 8000 在命令行中输入此命令,就会在当前目录下搭建http服务器,可以通过访问http://localhost:8000/查看, 这样就可以用同一网段的设备从这个http服务器下载文件 ...
分类:
编程语言 时间:
2021-06-09 10:40:33
阅读次数:
0
错误提示:当用loadrunner录制了web的代码完成之后,进行回放,提示报错:Action.c(51): Error -27987: Requested image not found [MsgId: MERR-27987] 解决方案:进行关联,步骤如下: 先找到所要进行关联的对象,将代码复制出 ...
分类:
其他好文 时间:
2021-06-09 10:37:51
阅读次数:
0
public class EPPlusExcelHelper : IDisposable { public ExcelPackage ExcelPackage { get; private set; } private Stream fs; public EPPlusExcelHelper(stri ...
java文件中包含3700行 /** * Returns the {@code Class} object associated with the class or * interface with the given string name. Invoking this method is * e ...
分类:
编程语言 时间:
2021-06-09 10:31:41
阅读次数:
0
'''一、CSS语法 1. 基本语法 选择器 声明 h1 { 属性名:属性值; ... } 2. 注释 /*单行注释多行注释都一个*/二、CSS选择器 基本选择器 label #id .class * 组合选择器 后代:label label {} 儿子:label>label {} 邻居:labe ...
分类:
Web程序 时间:
2021-06-09 10:30:29
阅读次数:
0
一、记录 1. 实时监控网卡流量脚本:https://www.kafan.cn/edu/5611612.html awk 'BEGIN{ OFMT="%.3f"; devf="/proc/net/dev"; while(("cat "devf) | getline) { if($0 ~ /:/ && ...
分类:
系统相关 时间:
2021-06-08 23:46:04
阅读次数:
0
引言: 为了一个广度优先搜索的细节有必要水一整篇文章?有必要。 这个细节非常重要,以至于我在切Leetcode某一题的时候,明明和答案的高效率通过的代码相差无几,逻辑毫无错误,STL使用相同,但仍然有几个测试点卡不过去。 题目来源:200.岛屿数量 我原来的代码: 1 class Solution ...
分类:
其他好文 时间:
2021-06-08 23:41:52
阅读次数:
0
文字的阐述有点枯燥,直接上使用方法上的不同: 父类Class.isAssignableFrom(子类Class) 子类实例 instanceof 父类实例 所以isAssignableFrom()是从类继承的角度去判断,而instanceof关键字是从实例继承的角度去判断,isAssignableF ...
分类:
其他好文 时间:
2021-06-08 23:35:15
阅读次数:
0