.. _tut-io: ************************************* input […]
Continue readingpython2.7基础教程之:错误和异常
.. _tut-errors: ================================== erro […]
Continue readingpython的继承与面向对象解析
python编程语言是一款功能强大的开发语言,它的最大特点在于其简单易用。而且还具有面向对象特征,可以很好的帮 […]
Continue readingpython类与继承讲解
相对于c++的继承编写,python更简洁,而且效率也是很高的,下面编写一个简单python的继承例子。 cl […]
Continue reading【python教程】python字典(dictionary)
python 字典(dictionary) 字典是另一种可变容器模型,且可存储任意类型对象,如其他容器模型。 […]
Continue reading【python教程】python元组
python 元组 python的元组与列表类似,不同之处在于元组的元素不能修改。 元组使用小括号,列表使用方 […]
Continue readingpython对数据库操作
windows下安装mysql-python 下载地址:https://pypi.python.org/pyp […]
Continue readingpythondjango连接mysql数据库做增删改查
1、下载安装mysqldb类库http://www.djangoproject.com/r/python-my […]
Continue readingpythondjango模板的使用方法
模板是一个文本,用于分离文档的表现形式和内容。 模板定义了占位符以及各种用于规范文档该如何显示的各部分基本逻辑 […]
Continue reading教你安装pythondjango
安装环境:python版本2.7.5 ,win7系统安装djangohttps://www.djangopro […]
Continue reading使用pythondjango做网页
1 、创建一个django项目使用django-admin.py startproject mydjangos […]
Continue readingpython语法练习
#!/usr/bin/env python # -*- coding:utf8 -*- w_sex =  […]
Continue readingpython语法练习
age = 26 count = 0 while count < 4: intput = int(input( […]
Continue readingpython语法练习
#!/usr/bin/env python # -*- coding:utf8 -*- age = 26 fo […]
Continue readingpython语法练习
#!/usr/bin/env python # -*- coding:utf8 -*- age = int(i […]
Continue readingpython语法练习
#!/usr/bin/env python # -*- coding:utf8 -*- name = inpu […]
Continue readingpython中的格式化输出用法总结
本文实例总结了python中的格式化输出用法。分享给大家供大家参考,具体如下:python一共有两种格式化输出 […]
Continue readingpython实现插入排序算法
代码如下: #!/usr/bin/python def insert_sort(array): for i i […]
Continue readingpython基础学习代码之序列
str1 = ‘abced’ for i in range(-1, -len(str1 […]
Continue readingpython基础学习代码之映像集合
def func1(): dict1 = {} dict2 = {‘name’: […]
Continue readingpython基础学习代码之条件和循环
def func1(): alist = [‘cathy’,’terry& […]
Continue readingpython基础学习代码之执行环境
class c(object): def __call__(self, *args, **kwargs): p […]
Continue readingpython基础学习代码之文件和输入输出
import os ls = os.linesep def func1(): filename = raw_i […]
Continue readingpython基础学习代码之错误和异常
def func1(): try: return float(‘abc’) excep […]
Continue readingpython基础学习代码之函数和函数式编程
def func1(): print ‘hello world’ res = func […]
Continue readingpython对json的相关操作实例详解
本文实例分析了python对json的相关操作。分享给大家供大家参考,具体如下: 什么是json: json( […]
Continue readingpythonfabric实现远程部署
python fabric实现远程部署 需求描述 在多人协同开发项目的过程中,几乎每天我们都要提交代码到git […]
Continue readingpythonparamiko实现ssh远程访问的方法
安装paramiko后,看下面例子: 代码如下: import paramiko #设置ssh连接的远程主机地 […]
Continue readingpythonfabric实现远程操作和部署示例
近期接手越来越多的东西,发布和运维的工作相当机械,加上频率还蛮高,导致时间浪费还是优点多。修复bug什么的,测 […]
Continue readingpythonfabric实现远程部署
python fabric实现远程部署 需求描述 在多人协同开发项目的过程中,几乎每天我们都要提交代码到git […]
Continue reading