python---序列可使用的内建函数(BIFs)
摘要:python---序列可使用的内建函数(BIFs)
阅读全文
posted @
2015-08-27 19:58
星夜晨曦
阅读(952)
推荐(0)
python习题练习(chapater 5 -- python核心编程)
摘要:python习题练习(chapater 5 -- python核心编程)
阅读全文
posted @
2015-08-25 22:08
星夜晨曦
阅读(342)
推荐(0)
Python数据结构之:列表
摘要:Python数据结构之:列表特性1> 有序的集合2> 通过偏移来索引数据3> 支持嵌套4> 数据可变2. 切片1> 正向索引>>>a = [1,2,3,4,5,6,7,7]>>>a[1:3] #取第2个到第3个的列表元素[2, 3]>>>a[0:5:2] #从第1个到第5个列表元素中每隔1个的元素[...
阅读全文
posted @
2015-08-24 10:35
星夜晨曦
阅读(348)
推荐(0)
linux系统将python升级到2.7.10版本
摘要:下载地址:https://www.python.org/ftp/python/2.7.10/Python-2.7.10.tgz下载文件到指定目录[root@operations ~]# cd /usr/local/[root@operations local]# wget https://www.p...
阅读全文
posted @
2015-08-24 10:34
星夜晨曦
阅读(1281)
推荐(0)
使用isinstance()来判断一个对象的类型
摘要:#!/usr/bin/env python# coding: utf-8'ct_p14.py -- use isinstance() to tell the type of a value' #此处为脚本doc文档#print("Enter something, you will see its t...
阅读全文
posted @
2015-08-13 17:28
星夜晨曦
阅读(588)
推荐(0)