shutil模块:高级的 文件、文件夹、压缩包 处理模块 # 基于路径的文件复制:shutil.copyfile('source_file', 'target_file') # 基于流的文件复制:with open('source_file', 'rb') as r, open('target_fi ...
分类:
其他好文 时间:
2019-07-05 22:22:48
阅读次数:
129
上一节,我们讲过,IP与端口之前的关系。以及目前我们学的软件的端口号。(这可是面试题)那今天来聊聊,如何快速找到某一个程序占用的端口号?例子:fiddle;环境:windows1:运行fiddle2:运行后打开:任务管理器3:找到对应程序的进程、对应的PIDPs:如果没有PID一列,需要进行设置;如下点击查看-->选择列-->勾选PID4:打开cmd,输入:netstat-ano|fi
分类:
其他好文 时间:
2019-07-04 22:37:52
阅读次数:
144
查看jar包内容 查看jar包内容的基本命令: 查看jar包内容 查看jar包内容的基本命令: jar tf jar-file 参数解释: The t option indicates that you want to view the table of contents of the JAR fi ...
分类:
编程语言 时间:
2019-07-03 20:07:38
阅读次数:
161
<!-- 解决post乱码 --> <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</fi ...
分类:
Web程序 时间:
2019-07-02 09:23:44
阅读次数:
120
#include #define reg register int #define il inline #define fi first #define se second #define mk(a,b) make_pair(a,b) #define numb (ch^'0') #define pb... ...
分类:
其他好文 时间:
2019-06-30 00:09:19
阅读次数:
138
一条件选择语句——if语句 对于if条件语句,简单地说,其语义类似于如果…那么。 if条件语句是Linux运维人员在实际生产工作中使用得最频繁也是最重要的语句。 (一)if条件语句的语法 1.单分支结构 if <条件表达式>then 指令 fi if <条件表达式>; then指令 fi 上文的“< ...
分类:
其他好文 时间:
2019-06-26 09:14:58
阅读次数:
127
import java.io.*; String filePath = "/data/account.txt"; String conent = vars.get("account"); BufferedWriter out = null; try { File file = new File(fi... ...
分类:
编程语言 时间:
2019-06-23 17:41:29
阅读次数:
423
``` if [ $ lt 2 ]; then echo " Need Two Path" exit fi src=( ) dest=( ) declare i cnt cnt=1 for( srcFile in ${src[ ]} do for(destFile in ${dest[ ]} do ...
分类:
其他好文 时间:
2019-06-22 01:19:07
阅读次数:
99
在网上寻找的方法,可以实现把数据库中的二进制数据转换成文件,也可以把本地的文件转成二进制的数据。二进制的图片数据可以用response对象直接输出给浏览器,比较方便~ 话不多说,代码送上! /// /// 文件转为 二进制/// /// 文件路径/// public static byte[] Fi ...
分类:
其他好文 时间:
2019-06-21 09:52:50
阅读次数:
297
SAP ERP FI-AP(債務管理)の機能で自動支払プログラムを処理する際に、関係するテーブルがあるもののどのテーブルが使われているかをプログラムを解析して調べるのが毎回大変なのでメモ ...
分类:
其他好文 时间:
2019-06-17 15:36:13
阅读次数:
81