#include <iostream> #include <cstring> #include <cmath> using namespace std; using ll=long long ; const int maxn=1e3+10; int dp[maxn][maxn]; int sum[m ...
分类:
其他好文 时间:
2021-05-24 13:59:03
阅读次数:
0
简介 使用了C++自带的实现deque 和 unordered_map code class LRUCache { public: unordered_map<int, bool> map; unordered_map<int, int> mapV; deque<int> q; int capaci ...
分类:
其他好文 时间:
2021-05-24 13:58:51
阅读次数:
0
问题: 安装pymysql时遇到报错 C:\Users\lenovo>pip install pymysql Unknown or unsupported command 'install' 解决办法: 直接用 pip.exe install pymysql 进行安装即可 ...
分类:
数据库 时间:
2021-05-24 13:56:47
阅读次数:
0
页面引入layui.css、 layui.js 1 <div id="pTable" style="width: 1200px;"> 2 <table class="layui-table" id="layui_table_id" lay-filter="test"> 3 </table> 4 <d ...
分类:
其他好文 时间:
2021-05-24 13:50:20
阅读次数:
0
二进制下载 this.$axios({ method: "get", //请求方式 responseType: "blob", //告诉服务器我们需要的响应格式 url: "file/download", //地址 }).then(res => { let url = window.URL.crea ...
分类:
其他好文 时间:
2021-05-24 13:49:54
阅读次数:
0
JSP表达式 <%--JSP表达式 作用:用来将程序的输出,输出到客户端 <%= 变量或者表达式%> --%> <%= new java.util.Date()%> jsp脚本片段 1 <%--jsp脚本片段--%> 2 <% 3 int sum = 0; 4 for (int i = 1; i < ...
分类:
Web程序 时间:
2021-05-24 13:47:30
阅读次数:
0
promise.then 如果不加第二个参数则会执行catch方法, 加第二个参数则不会执行catch方法。 var pro=new Promise((resolve,reject)=>{ // resolve(); reject(); }) pro.then(()=>{ console.log(' ...
分类:
其他好文 时间:
2021-05-24 13:41:41
阅读次数:
0
写公钥 ssh-keygen -t rsa # 生成key (echo -e "\n\n"; cat id_rsa.pub; echo -e "\n\n") > /tmp/key.txt # 前后加换行 cat /tmp/key.txt | redis-cli -h 59.xx.xx.157 -x ...
分类:
其他好文 时间:
2021-05-24 13:41:02
阅读次数:
0
<?php class One{ private static $_one; private function __construct(){} private function __clone(){} public static function getOne(){ if(!self::$_one ...
分类:
Web程序 时间:
2021-05-24 13:36:59
阅读次数:
0
bool #布尔类型 True #真 False #假 l = [1,2,3,4] print( 1>2 ) #False print( 4 in l) #True print(1 not in l) #False print( len(l) > 3) #True 比如,想写个while的死循环,可 ...
分类:
其他好文 时间:
2021-05-24 13:31:59
阅读次数:
0