Python~字典
2016-03-23 19:53
399 查看
if not isinstance(x, (int, float)): raise TypeError('bad operand type')[/code]
range()
raw_input(‘birth’)返回字符串
函数
abs()
cmp():
(1,2) | (1,1) | (2,1) |
-1 | 0 | 1 |
int(‘123’) | str(1.23) | |
int(12.23 | bool(1)true | |
float(‘12.34’) | bool(‘’) false | |
相关文章推荐
- Python~if,while,for~顺序,判断,循环
- Python学习笔记(一)基础
- Python~list,tuple^_^dict,set
- Python学习笔记——字符串
- ubuntu 14.04安装mysql-python
- python小点心--判断操作系统类型
- Eric6 安装与颜色配置
- python问题:IndentationError:expected an indented block错误解决
- Python string modify
- Python string compare
- Python2.7<-------->Python3.x
- Python split
- Python~第三方模块
- KNN python实践
- 在Python里安装Jieba中文分词组件
- Pythonj~module
- think python学习心得-(3)条件和递归
- Python文档生成工具pydoc使用介绍
- 初学者必知的Python中优雅的用法
- python编辑器pydev安装