码迷,mamicode.com
首页 >  
搜索关键字:file python3    ( 63124个结果)
win9x_win2k下对物理磁盘的操作
void CReadSectorDlg::OnReadButton() { UpdateData (TRUE) ; CFile m_Sector_file ; char * buffer ; if ( m_FileName_str == "")  { MessageBox ("Please enter a file to which the read sector contents are...
分类:Windows程序   时间:2014-08-27 11:02:27    阅读次数:279
perl moose 修饰器
原理上就是在调用某个方法之前,先做一些事情,比如检查参数什么的,在Dancer中也有这个关键字,可以在request到来的时候,通过检查远程ip来判断是否是非法的ip请求#!/usr/bin/perl# file : before.pl# date : 2014/08/26# author : da...
分类:其他好文   时间:2014-08-27 10:47:47    阅读次数:203
YUM配置
实验02:YUM配置实验目标掌握YUM的配置实验步骤放入RHEL5.9iso,确保电源OK(/misc/cd)客户端配置[root@localhost~]#cd/etc/yum.repos.d/[root@localhostyum.repos.d]#lsrhel-debuginfo.repo[root@localhostyum.repos.d]#cprhel-debuginfo.reporh-server5.9.repo[root@localhost..
分类:其他好文   时间:2014-08-27 02:49:47    阅读次数:255
ecshop ajax请求验证captcha(验证码)
Ecshop内置了强大的验证码机制,我们只要调用cls_captcha.php这个验证码就可以。 说明一点,当我们使用自己定义的php文件时,我们最好加上IN_ECS 为ture的设置,否则可能抛出Hacker 攻击的错误,下面给出ajax请求验证代码 define('IN_ECS', true); require(dirname(__FILE__) . '/includes/in...
分类:其他好文   时间:2014-08-27 00:24:26    阅读次数:253
media_root以及static_root配置
# At the top of settings/base.pyfrom os.path import join, abspath, dirnamehere = lambda *x: join(abspath(dirname(__file__)), *x)PROJECT_ROOT = here("....
分类:其他好文   时间:2014-08-26 22:51:26    阅读次数:239
File List
1 public class Question1 { 2 3 public static void main(String[] args) { 4 String dir=""; 5 if(args.length!=1) 6 { 7 ...
分类:其他好文   时间:2014-08-26 21:22:16    阅读次数:180
怎么设置环境变量
1.首先,打开配置环境变量界面,如下操作:我的电脑---属性---高级---环境变量 2.系统变量(S)中配置如下: 2.1,新建系统变量: 变量名:JAVA_HOME 变量值:C:\Program Files\Java\jdk1.5.0_17(该目录为JDK安装的目录) 2.2,编...
分类:其他好文   时间:2014-08-26 21:21:36    阅读次数:181
如何利用IDL扩展ENVI功能
1、写一个TEST_NDVI函数,编译2、在控制台输入命令:SAVE, /ROUTINES,FILENAME='C:\Program Files\Exelis\ENVI51\classic\save_add\TEST_NDVI.SAV'3、打开ENVI Classic,并打开can_tmr.img图...
分类:其他好文   时间:2014-08-26 21:18:56    阅读次数:242
file_get_contents伪造user_agent curl设置useragent的方法
file_get_contents 和 curl 这俩强悍的函数,在远程抓取时候相当有用处.不过一些网站会根据来访ip是否携带user_agent来判断是正常的浏览器客户端还是机器.所以,我们的任务就是给他们伪造user_agent. file_get_cont...
分类:其他好文   时间:2014-08-26 20:02:26    阅读次数:189
python optparse 长选项 短选项使用
importoptparse,os,socket,timedefparse_args():usage="""pythontest.pytest"""parser=optparse.OptionParser(usage)help="IplistFile"parser.add_option("-f","--file",dest=‘iplistfile‘,default=‘iplist.txt‘,help=help)help="CmdFile"parser.add_option("-c","--config",de..
分类:编程语言   时间:2014-08-26 19:54:17    阅读次数:298
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!