1 from urllib import request,parse 2 import os 3 # https://tieba.baidu.com/f?kw=lol&ie=utf-8&pn=0 4 # https://tieba.baidu.com/f?kw=lol&ie=utf-8&pn=50 ...
分类:
Web程序 时间:
2020-03-23 15:01:56
阅读次数:
82
IO访问方式 磁盘IO 具体步骤: 当应用程序调用read接口时,操作系统检查内核缓冲区中是否存在需要的数据,如果存在,就直接从内核缓存中直接返回,否则从磁盘中读取,然后缓存至操作系统的缓存中。 当应用程序调用write接口时,将数据直接从用户地址空间复制到内核地址空间的缓存中,这时对用户程序来说, ...
分类:
其他好文 时间:
2020-03-22 17:45:07
阅读次数:
67
@Aspect@Component@Order(1)public class WriteLogAspect { @Pointcut("@annotation(com.sunac.hikvision.common.aspect.annotation.WriteLog)") public void we ...
分类:
其他好文 时间:
2020-03-22 14:14:09
阅读次数:
45
JOISC2020 自闭记 以下是考试时以及考试后我想出来的所有算法,因此很多题都不是正解 T1 11 pts 算法:考虑$DP$。 设$f_{i, j, k}$表示前$i$个数,选了$j$个$B$数组的数,且第$i$个数选的是$A/B$时,是否存在所要求的单调不降的数列。 直接$DP$,可以获得一 ...
分类:
其他好文 时间:
2020-03-22 10:50:39
阅读次数:
270
思科交换机分为两种系统,分别是IOS和CatOS,下面介绍IOS版本的操作, Switch#write erase Erasing the nvram filesystem will remove all files! Continue? [confirm]y[OK] Erase of nvram: ...
分类:
其他好文 时间:
2020-03-22 01:31:10
阅读次数:
187
1、xlsxwriter模块介绍:主要用来生成excel表格,插入数据、插入图标等表格操作 如下代码:目的是往demo01.xlsx插入数据和图片 # 导入xlsxwriter模块:主要用来修改表格的数据 import xlsxwriter target_xlsx="D:/360Downloads/ ...
分类:
其他好文 时间:
2020-03-21 18:27:55
阅读次数:
157
干货! 概述 是借助可持久化线段树实现的,因为这个数据结构进行版本复制时只需新开 $\log n$ 个结点,单点查询也只需要花费 $\log n$ 的时间,非常高效。其主要思想就是先建一个线段树,动态开点,在叶子结点上维护原数组的信息。当修改某个位置的值时,只需要在这个位置所对应的叶结点的路径复制一 ...
分类:
编程语言 时间:
2020-03-21 14:28:20
阅读次数:
61
Given any positive integer N , you are supposed to find all of its prime factors, and write them in the format N = p 1 k 1× p 2 k 2×?× p m k m . Input ...
分类:
其他好文 时间:
2020-03-21 13:10:32
阅读次数:
77
1、今天打开eclipse的时候,突然打不开了。 2、不管咱退出,然后再打开,也是一个样。 解决: 1、打开终端 defaults write com.apple.finder AppleShowAllFiles -boolean true;killall Finder 2、转到eclipse的工作 ...
分类:
系统相关 时间:
2020-03-21 09:22:31
阅读次数:
227
发送事件 主要函数: bool QCoreApplication::sendEvent ( QObject *receiver, QEvent * event ) void QCoreApplication::postEvent ( QObject *receiver, QEvent * event ...
分类:
其他好文 时间:
2020-03-20 23:59:19
阅读次数:
119