#coding=utf-8import win32com.clientclsid='{9BA05972-F6A8-11CF-A442-00A0C90A8F39}'ShellWindows=win32com.client.Dispatch(clsid)for i in range(ShellWindo...
分类:
编程语言 时间:
2014-07-22 22:45:34
阅读次数:
218
1 using System; 2 using System.Threading; 3 4 public class Example 5 { 6 // mre is used to block and release threads manually. It is 7 ...
分类:
其他好文 时间:
2014-07-22 22:45:33
阅读次数:
239
1、使用正则表达式进行URL匹配urlpatterns = patterns('', # ... (r'^time/plus/\d+/$', hours_ahead), # ...)(1)使用r代表字符串是原始字符串,表示python不会对立面的反斜杠\转义符进行处理,使用正则表达...
分类:
编程语言 时间:
2014-07-22 22:45:15
阅读次数:
235
进入解释器python获得帮助help(函数名)退出帮助:q如何退出解释器提示符如果你使用的是 Linux/BSD shell ,那么按 Ctrl-d 退出提示符。如果是在 Windows 命令行中,则按 Ctrl-z 再按 Enter编译新建/打开py文件vim filename.py按i输入代码...
分类:
编程语言 时间:
2014-07-22 22:43:53
阅读次数:
320
用python连接zookeeper时,在终端里,一直会有zookeeper的日志冒出来,这样会很烦。2014-07-22 10:06:19,544:10474(0x7fd459406700):ZOO_WARN@zookeeper_interest@1557: Exceeded deadline b...
分类:
编程语言 时间:
2014-07-22 22:43:34
阅读次数:
1423
Python安装、配置图文详解目录: 一. Python简介二. 安装python1. 在windows下安装2. 在Linux下安装 三. 在windows下配置python集成开发环境(IDE)1. 在Eclipse中安装PyDev插件2. ...
分类:
编程语言 时间:
2014-07-22 22:43:33
阅读次数:
315
using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace AnfleCrawler....
分类:
其他好文 时间:
2014-07-22 22:42:53
阅读次数:
333
在python程序中调用shell命令,是件很酷且常用的事情……1. os.system(command) 此函数会启动子进程,在子进程中执行command,并返回command命令执行完毕后的退出状态,如果command有执行内容,会在标准输出显示。这实际上是使用C标准库函数system()实现的...
分类:
编程语言 时间:
2014-07-22 22:41:36
阅读次数:
271
需要使用urllib2库import urllib2def download(url, szFileName = ""): #szFileName:下载文件到的目标路径 if szFileName == "": szFileName = url[url.rfind('/') + ...
分类:
编程语言 时间:
2014-07-22 22:41:13
阅读次数:
249
1.创建一个内存表,定义主键约束等2.声明基类数组并赋值,再把数组当做行添加到Rows中using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.T...
分类:
其他好文 时间:
2014-07-22 22:40:13
阅读次数:
219