简介 接雨水. 简单思路 排序, 依次选择最高的柱子,所围城的池塘高度 code class Solution { public: struct zhuzi{ int height; int index; }; bool static cmp(const struct zhuzi &a, const ...
分类:
其他好文 时间:
2021-05-24 11:50:06
阅读次数:
0
Linux操作系统安装好之后,可以通过 df -h 命令查看磁盘挂载信息和空间使用率 [root@localhost ~]# df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 7.8G 0 7.8G 0% /dev tmpfs 7.8 ...
分类:
其他好文 时间:
2021-05-24 11:10:34
阅读次数:
0
批量修改文件名 python 对文件进行批量改名用到的是 os 模块中的 listdir 方法和 rename 方法。 os.listdir(dir):获取指定目录下的所有子目录和文件名 os.rename(原文件名,新文件名):对文件或目录改名 把混乱的文件名改成有序的文件名: import os ...
分类:
编程语言 时间:
2021-05-24 10:50:28
阅读次数:
0
web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instanc ...
分类:
编程语言 时间:
2021-05-24 10:40:53
阅读次数:
0
路由导航守卫控制访问权限 一、如果用户没有登录,但是直接通过URL访问特定页面,需要重新导航到登录页面。 //为路由对象添加beforeEach导航守卫 router.beforeEach((to, from, next) => { // 如果用户登录的是登录页,直接放行 if (to.path ' ...
分类:
其他好文 时间:
2021-05-24 10:31:18
阅读次数:
0
vi ~/.bash_profile #GRADLE GRADLE_HOME=/Users/qinxy/software/gradle-4.9 PATH=$PATH:$GRADLE_HOME/bin export GRADLE_HOME GRADLE_USER_HOME PATH 更新效 sourc ...
分类:
系统相关 时间:
2021-05-24 10:27:44
阅读次数:
0
ConfigureAppConfiguration((hostingContext, config) => { config.AddCryptoFile(Path.Combine(AppContext.BaseDirectory, "appsettings.json.crypto"), true); ...
分类:
Web程序 时间:
2021-05-24 10:20:52
阅读次数:
0
System.Environment.CurrentDirectory的含义是获取或设置当前工作路径,而Application.StartupPath是获取程序启动路径,表面上看二者没什么区别,但实际上区别很大。先说前者:比如说你程序放在桌面上启动,但是中间你用了一个OpenFileDialog打开 ...
分类:
移动开发 时间:
2021-05-24 10:18:06
阅读次数:
0
SELECT a.address,a.cont AS countAddress,b.sum AS sumAddress,CONCAT( ROUND( a.cont / b.sum * 100, 2 ), '', '%' ) AS percent FROM( SELECT address, COUNT ...
分类:
数据库 时间:
2021-05-24 10:05:17
阅读次数:
0
const routers= [ { path:'/', name:'F', component:FP }, { path:'/secondpage', component:()=>import('../views/secondpage.vue') }, { path:'/thirdpage', c ...
分类:
其他好文 时间:
2021-05-24 09:30:56
阅读次数:
0