题目来源:http://www.lintcode.com/zh-cn/problem/merge-sorted-array/ C++版 VS2012测试通过 Python2.7版 spider测试通过 ...
分类:
编程语言 时间:
2016-06-23 21:57:09
阅读次数:
197
一、脚本功能登录接口-输入用户名、密码-用户名、密码为空,提示-输错三次锁定-认证成功后,显示欢迎登录信息二、流程图三、python代码[root@s01-ansible-106-k3Day1]#catlogin.py#!/usr/bin/envpythonimportsysusername=‘hanyun‘password=‘hanyun123‘retry_count=0whileTrue:u..
分类:
编程语言 时间:
2016-06-23 19:05:32
阅读次数:
209
该平台是自己变学习python和django边写的,不足之处,请各位不吝赐教,谢谢!一、系统环境centos6.4x64操作系统,python2.7.10,django1.8.1,mysql,saltstack2015.5.5-1(使用过程中salt低版本有些功能不支持)二、安装部署1、先把mysql服务装上。yum-yinstallmysql-servermy..
分类:
Web程序 时间:
2016-06-23 19:01:15
阅读次数:
1260
环境搭建是测试人员基础,本质都是不难的,按照流程和步骤一步步做,遇到问题不要担心,解决的问题越多,你理解的也就越多。 1. 安装python环境,python现在有python2 和python3。由于 robotframe work 开发时间较早,我们只能选择python2. (写这篇文时候,最新... ...
分类:
其他好文 时间:
2016-06-23 14:29:48
阅读次数:
134
Python2.7.11(v2.7.11:6d1b6a68f775,Dec52015,20:32:19)[MSCv.150032bit(
Intel)]onwin32
Type"help","copyright","credits"or"license"formoreinformation.
>>>importnumpy
>>>a=numpy.mat([[1,2,3,4],[7,8,9,10]])
>>>a
matrix([[1,2,3,4],
[7,8..
分类:
其他好文 时间:
2016-06-23 01:09:57
阅读次数:
1767
1.升级python1.1.安装:tar-xfPython-2.7.10.tar.xz
cdPython-2.7.10
./configure--prefix=/usr/local/pyhon2.7
make
makeinstall1.2.备份老版本文件mv/usr/bin/python/usr/bin/python2.6.61.3.连接新文件ln-s/usr/local/pyhon2.7/bin/python/usr/bin/python安装完成验证:[roo..
分类:
其他好文 时间:
2016-06-21 14:10:31
阅读次数:
1018
1. 从Python官网到获取Python3的包, 切换到目录/usr/local/src 2. 使用命令如下命令进行解压缩: 3. 在/usr/local路径下创建目录--python3.5, 为第4步的安装目录 4. 编译安装 5. 进入安装的绝对路径,检查是否安装成功 6.查看环境变量,启动p ...
分类:
编程语言 时间:
2016-06-21 12:27:38
阅读次数:
157
最近几天准备用python写一个小项目,所以开始了python之旅,今天主要说一下python的安装以及python库的安装。
官网: https://www.python.org/
选择“Download->Source Code”然后选择一款 python2.7X的版本下载,注意对应电脑的操作系统(例如32位,64位等)
因为python2.7 版本的比较稳定,...
分类:
编程语言 时间:
2016-06-21 08:00:24
阅读次数:
251
Item 14: Prefer Exceptions to Returning None Functions that returns None to indicate special meaning are error prone because None and other values (e. ...
分类:
编程语言 时间:
2016-06-19 11:19:29
阅读次数:
225
Item 2: Follow the PEP 8 Style Guide Naming Expressions and Statements Always use absolute names for modules when importing them, not names relative t ...
分类:
编程语言 时间:
2016-06-18 14:07:52
阅读次数:
273