package cn.itcast.utils; import java.io.File; import java.nio.file.Path; import java.util.HashMap; import com.google.zxing.BarcodeFormat; import com.g ...
分类:
其他好文 时间:
2018-01-06 19:03:21
阅读次数:
149
递归列出目录里的文件#!/usr/bin/pythonimport osimport sysdef print_file(path): lidir=os.listdir(path) dirs=[i for i in lidir if os.path.isdir(os.path.join(path,i))] files=[
分类:
其他好文 时间:
2018-01-05 16:52:05
阅读次数:
129
WebLogic XMLDecoder反序列化漏洞复现 参考链接: https://bbs.ichunqiu.com/thread-31171-1-1.html git clone https://github.com/vulhub/vulhub.git cd vulhub/weblogic/ssr ...
分类:
Web程序 时间:
2018-01-02 23:12:13
阅读次数:
1439
echo off setlocal enabledelayedexpansion set "EXCEL_DIR=%cd%\excel" for /R %EXCEL_DIR% %%f in (*.xls) do ( set "FILE_PATH=%%f" echo 完整的路径: !FILE_PATH!... ...
分类:
其他好文 时间:
2017-12-18 18:49:21
阅读次数:
182
https://www.cnblogs.com/strongYaYa/p/7200357.html os 模块下有两个函数: os.walk() os.listdir() 幸运之神的降临,往往只是因为你多看了一眼,多想了一下,多走了一步。 ...
分类:
编程语言 时间:
2017-12-17 17:04:05
阅读次数:
257
客户端代码: import os import configparser PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) class Configuration(object): def __init__(self ...
分类:
其他好文 时间:
2017-12-12 21:51:57
阅读次数:
192
‘./configure‘ ‘--prefix=/usr/local/php56‘ ‘--htmldir=/usr/local/php56/doc‘ ‘--with-config-file-path=/usr/local/php56/etc/‘ ‘--with-pear‘ ‘--enable-re2c-cgot
分类:
Web程序 时间:
2017-12-11 11:28:16
阅读次数:
243
之前用项目用gulp-htmlone做最后的js和css内联打包出现各种问题 这次居然遇到打包后的css斜杠变反斜杠的问题 如下:/src/common/images/i_banner.jpg会被改成\src\common\images\i_banner.jpg 实在无法忍耐去改他的源码,改了后其他 ...
分类:
Web程序 时间:
2017-12-08 13:58:38
阅读次数:
203
在前面程序出现异常时,我们都会给一个提示,告诉用户,程序为什么会异常,但是现在我们想在程序出现异常时,不做处理,让程序默默的往下执行,不要做声。 那么我们就引入了pass语句 def count_words(file_path): try: with open(file_path) as file_... ...
分类:
编程语言 时间:
2017-11-26 17:54:20
阅读次数:
346
1.1写入空文件 若将文本写入文件,在调用open()时候需要提供另外一个实参,告诉Python你要写入打开的文件 file_path = 'txt\MyFavoriteFruit.txt' with open(file_path,'w') as file_object: file_object.w... ...
分类:
编程语言 时间:
2017-11-26 15:52:02
阅读次数:
372