2.1 Built-in Functions The Python interpreter has a number of functions built into it that are always available. They are listed here in alphabetical order. __import__( name[, globals[, locals[, fromlist]]]) This function is invoked by the import sta
一,Python的对象: Python存在大量的对象,我们一般提到的对象都是C中的结构体在堆中申请的一块内存(以CPython为例),每一个对象都有ID,可以通过ID(Object)获得.对象的范围包括内建类型的对象(如int类型的对象123,str的对象"test",list的对象[],生成器对象等等).用户自建类型的对象.函数(lambda函数,生成器函数).类型.Ture.False(bool类型的对象).None(NoneType的对象). print id(123) prin