1httplib简介httplib是python中http协议的客户端实现,可以使用该模块来与HTTP服务器进行交互httplib是一个相对底层的http请求模块,其上有专门的包装模块,如urllib内建模块,goto等第三方模块,但是封装的越高就越不灵活,比如urllib模块里请求错误时就不会返回结果页的内容..
分类:
编程语言 时间:
2015-09-24 11:07:15
阅读次数:
199
QuestionGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the far...
分类:
其他好文 时间:
2015-09-24 10:56:30
阅读次数:
128
1.以前的方法如果是要获得程序运行的当前目录所在位置,那么可以使用os模块的os.getcwd()函数。如果是要获得当前执行的脚本的所在目录位置,那么需要使用sys模块的sys.path[0]变量或者sys.argv[0]来获得。实际上sys.path是Python会去寻找模块的搜索路径列表,sys...
分类:
编程语言 时间:
2015-09-24 10:55:37
阅读次数:
153
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space fo...
分类:
其他好文 时间:
2015-09-24 10:53:01
阅读次数:
169
#encoding=utf-8 print '中国' #二维阵列变换 行转化成列,列转化成行 lista=[[1,2,3],[4,5,6],[7,8,9],[10,11,12]] #使用列表推导 listb=[[r[col] for r in lista] for col in...
分类:
编程语言 时间:
2015-09-24 10:52:08
阅读次数:
402
Part three of our article series on the common phases of type 2 diabetes managementBy Lance PorterAlmost everyone who begins taking insulin (for eithe...
分类:
其他好文 时间:
2015-09-24 10:49:19
阅读次数:
170
在不能连接外网的机器上安装python的各种包,解压安装要人工输入多条命令:tar -zxvfFlask-WTF-0.10.0.tar.gzcdFlask-WTF-0.10.0python setup.py buildpython setup.py install如果安装了pip,直接使用:pip ...
阅读目录简单介绍环境准备实例操作[创建、插入]链接MySQL的testdb数据库并获取一个字段的属性创建一个VFORBOX数据表执行 SQL INSERT 语句向表 VFORBOX 插入记录使用变量向SQL语句中传递参数实例操作[查询、更新]查询VFORBOX表中name(姓名)字段等于 vforb...
分类:
数据库 时间:
2015-09-24 10:42:35
阅读次数:
262
其实就是linux的定时任务。老记不住参数,这次写下来,省着老百度。本文没有技术含量,请大家不要吐槽。================================================================每天清晨 4:00:01,用python执行/opt/aa.py文件。...
分类:
编程语言 时间:
2015-09-24 09:32:14
阅读次数:
183
在sql移植到oracle过程中,都会遇到表名和字段名大写的问题,因为在oracle中默认表名和字段名都是大写的,虽然可以通过使用双引号的方式进行操作,如select * from "testtable"但是很多情况下,这样做的代价很大,因为很多程序的代码是早已经写好的,而要修改oracle系统配置...
分类:
数据库 时间:
2015-09-24 09:30:03
阅读次数:
229