打包成tar.gz格式压缩包 # tar -zcvf file.tar.gz /file 解压tar.gz格式压缩包 # tar zxvf file.tar.gz 打包成tar.bz2格式压缩包 # tar -jcvf file.tar.bz2 /file 解压tar.bz2格式的压缩包 # tar ...
分类:
系统相关 时间:
2021-04-05 11:56:27
阅读次数:
0
一、iptables常用命令 #查看已有的防火墙规则链 iptables -L #清空已有的防火墙规则链 iptables -F #把 INPUT 规则链的默认策略设置为拒绝 iptables -P INPUT DROP #向 INPUT 链中添加允许 ICMP 流量进入的策略规则 iptables ...
分类:
系统相关 时间:
2021-04-05 11:55:37
阅读次数:
0
input(): 接收用户输入的内容 示例代码: result = input('请输入内容:') print(result) # 用户输入的是什么内容就打印什么内容 ...
分类:
其他好文 时间:
2021-04-05 11:54:27
阅读次数:
0
问题: 勇士救公主问题。 勇士从左上角[0,0]出发,要到达右下角[n-1,m-1]公主所在。 只能向右or向下移动。 格子上的数字代表:加减血。 若到达某个格子勇士血量<1那么,勇士立即死亡。游戏失败。 求,至少在出发时,勇士的初始血量是多少。 Example 1: Input: dungeon ...
分类:
其他好文 时间:
2021-04-02 13:09:41
阅读次数:
0
记录编译开始时间(自己的脚本一定要放在最前面,否则项目不会使用修改完成后的内容) # Type a script or drag a script file from your workspace to insert its path. app_build_time_path=${SRCROOT}/ ...
分类:
移动开发 时间:
2021-04-02 13:04:47
阅读次数:
0
用python写数据库连接时要用到数据连接池于是就想到了DBUtils ,这个简单pip install DBUtile 安装完后写代码测试一下 from DBUtils.PooledDB import PooledDB Traceback (most recent call last): File ...
分类:
数据库 时间:
2021-04-02 13:02:54
阅读次数:
0
https://blog.csdn.net/weixin_33672109/article/details/92378342 #!/bin/bash if [ "$#" -ne 2 ] ; then echo "USAGE: $0 -f server_list_file cmd" exit -1 f ...
分类:
系统相关 时间:
2021-04-02 13:01:20
阅读次数:
0
1.获取后端返回的二进制流//安装xlsx插件 npm install xlsx -s //在页面引入xlsx impory XLSX from 'xlsx' //如果是axios请求,responseType需要设置为arraybuffer //获取并处理返回的信息 let data = new ...
分类:
其他好文 时间:
2021-04-02 12:55:54
阅读次数:
0
原文地址:Kotlin/Java 读取Jar文件里的指定文件 | Stars-One的杂货小窝 jar包本质上也是压缩文件,下面给出如何读取jar包里某个文件的源码: val jarFile = JarFile("D:\\project\\javafx\\lanzou-downloader\\out ...
分类:
编程语言 时间:
2021-04-01 13:18:25
阅读次数:
0
1、现象 在 /etc/profile里加了环境变量,但是重启这个环境变量未加入成功 2、原因 可能是被其他加载环境变量的脚本刷掉了 参考:https://blog.csdn.net/my_wings/article/details/102617631 3、解决 在.bashrc里添加 vim ~/ ...
分类:
系统相关 时间:
2021-04-01 13:12:59
阅读次数:
0