PYTHON LIB
来源:互联网 发布:遇到网络诈骗怎么做 编辑:程序博客网 时间:2024/05/21 23:59
1、all(iterable)
all主要是用来遍历序列中的每个元素。它返回bool
例子
>>> L=[['a','b','c','d'],['1','2','3']]
>>> while all(L):
print(tuple(s.pop(0) for s in L))
2、locals()
3、exit()
quit()
- copyright
- license
- credits
4、python中的常量
True False NotImplemented
Ellipsis __debug__
5、TpyeError
当参与操作运算的数,类型不同时,报错。
6、python container
python容器:
不可变;
tuple
string
unicode
frozenset
可变:
list
dictionary
set
7、
s.count(i)
s[i:j:k] 从i到j k为间隔
8、s.index(i)返回i在s中第一次出现的位置
9、print
- PYTHON LIB
- Python Lib
- Python lib
- python lib 之 operator
- Python lib demo
- python excel lib (xlwt)
- Python lib "Fabric"
- Python及其Lib安装
- python web lib
- python lib 学习
- python lib install
- ice python lib编译
- Python Lib Queue.py
- python lib error
- python usefull lib
- Python Lib Index
- python 指定 lib目录
- Python's Third Part Lib
- 11个Linux基础面试问题
- MyEclipse 10安装SVN插件
- 技术人员如何判断靠谱的创业合伙人?
- BNU 4208 Bubble sort (想法题)
- (十)机房收费系统操作手册
- PYTHON LIB
- 用JavaScript的eval获取Ajax返回的JavaScript代码
- C++习题:野人与修道士过河问题
- 选择最好的,不一定是最好的选择!
- Linux下mysql修改密码
- 关于对WinCE工程的编译命令使用
- cocos2d-x添加遮罩【CCRenderTexture】
- 鼠标右键菜单demo
- 在sae中,怎么将图片上传到storage的二级目录的代码?