摘要: # -*- coding: utf-8 -*- # from multiprocessing import Pool 多进程 from multiprocessing.dummy import Pool as ThreadPool import time import urllib2 urls = [ 'http://www.python.org', 'http://www.... 阅读全文
posted @ 2016-06-06 16:46 北京流浪儿 阅读(1040) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/end/archive/2012/06/18/2553682.html 1.内置运算符1.1关系运算符 运算符 类型 说明 A = B 所有原始类型 如果A与B相等,返回TRUE,否则返回FALSE A == B 无 失败,因为无效的语法。 SQL 阅读全文
posted @ 2016-06-06 12:24 北京流浪儿 阅读(223) 评论(0) 推荐(0)
摘要: #Python的os.path模块提供了 isdir() 和 isfile()函数,请导入该模块,并调用函数判断指定的目录和文件是否存在。 import os print os.path.isdir(r'/data/webroot/resource/python') #存在则返回:true print os.path.isfile(r'/data/webroot/resource/pyth... 阅读全文
posted @ 2016-06-06 11:49 北京流浪儿 阅读(558) 评论(0) 推荐(0)