今天看到群里哥们发了一个需求,如下:“如何批量检测一批主机的端口,是否存在,端口都是对外的”,感觉不难,就用py写了个小脚本,有问题的地方,还望大家指出,谢谢!#!/usr/bin/envpython
importsocket
file="C:\Users\Administrator\py_demo\ip.txt"
port=80
a=open(fil..
分类:
编程语言 时间:
2014-08-12 13:57:44
阅读次数:
262
struct op( name = "ccc")coc = #( cc = op name: 20 , op name: "name" )--- 保存数组配置o = gt_max_namespace.gt_cl_hp_fileiooutin(); o. setfile "c://t.txt" ...
分类:
其他好文 时间:
2014-08-12 12:55:34
阅读次数:
146
1 import java.io.File; 2 3 import com.iss.utils.LogUtil; 4 5 import android.os.Environment; 6 import android.os.StatFs; 7 8 /** 9 * 类名 10 * @aut...
分类:
移动开发 时间:
2014-08-12 12:46:24
阅读次数:
366
流量超出后网站会被暂停,暂停后才会发邮件通知。此脚本可以加到计划任务,每天获取流量使用前十。及时查看流量是否会超出。#!/bin/baship=`ifconfig|grep"inetaddr"|grep-v127.0|cut-d:-f2|awk‘{print$1}‘`file=/opt/useage.bandwidthfind/usr/local/directadmin/data/users/-..
分类:
其他好文 时间:
2014-08-12 10:30:44
阅读次数:
172
This chapter explains how to use the FileChooser class to enable users to navigate the file system. The samples provided in this chapter explain how to open one or several files, configure a file
ch...
分类:
编程语言 时间:
2014-08-12 10:25:23
阅读次数:
491
#!/bin/sh#Author: OpalTODAY=`date +%Y%m%d`YESTERDAY=`date -d"-1 day" +%Y%m%d`mkdir -p /var/backups/etc.${TODAY}/cp -r /etc/* /var/backups/etc.${TODA.....
分类:
系统相关 时间:
2014-08-12 10:15:03
阅读次数:
230
导出exp username/password@orcl file=db.dmp导入imp username/password@orcl file=h:\db.dmp full=y备注:在导入之前,请先清除Views、Sequences、Tables也可以使用Bat文件导出Bat文件内容如下:@ec...
分类:
数据库 时间:
2014-08-12 10:04:43
阅读次数:
289
题意:求逆序对解题思路:1)树状数组 + 离散化解题代码: 1 // File Name: a.cpp 2 // Author: darkdream 3 // Created Time: 2014年08月05日 星期二 12时05分09秒 4 5 #include 6 #include 7 #in....
分类:
其他好文 时间:
2014-08-12 08:57:23
阅读次数:
182
The secret codeInput file: stdinOutput file: stTime limit: 1 secMemory limit: 256 MbAfter returning from the trip, Alex was unpleasantly surprised: hi...
分类:
其他好文 时间:
2014-08-12 03:05:43
阅读次数:
264
1 package it.cast.jdbc; 2 3 import java.io.BufferedReader; 4 import java.io.BufferedWriter; 5 import java.io.File; 6 import java.io.FileNotFoundExce.....
分类:
数据库 时间:
2014-08-12 03:00:03
阅读次数:
235