Python内置数据类型与函数

来源:互联网 发布:相片mv制作软件 编辑:程序博客网 时间:2024/05/01 02:06

详细使用方法,可使用

help('__builtin__')

命令全部列出,为方便找到对应条目,将所有项目列出如下:

(按照《Python技术手册》第154-164页内容列出)

Python 内置数据类型


basestring
bool
buffer
classmethod
complex
dict
enumerate
file,open
float
frozenset
int
list
long
object
property
reversed
set
slice
staticmethod
str
super
tuple
type
unicode
xrange


Python内置函数

__import__
abs
all
any
callable
chr
cmp
coerce
compile
delattr
dir
divmod
eval
execfile
filter
getattr
globals
hasattr
hash
hex
id
input
intern
isinstance
issubclass
iter
len
locals
map
max
min
oct
ord
pow
range
raw_input
reduce
reload
repr
round
setattr
sorted
sum
unichr
vars
zip
原创粉丝点击