Python内置函数-kafka调试中遇到connection to node -1 could not be established. broker may not be available.

A.4.1  Python关键字下面的关键字都有特殊含义,如果你将它们用作变量名,将引发错误: False class finally is return None continue for lambda try True def from nonlocal while and del global not with as elif or yield assert else import pass break except in raise A.4.2  Python内置函数将内置函数名用作变量名时,不会导致错误,但将覆盖这些函数的行为: abs() divmod() input() open() staticmethod() all() enumerate() int() ord() str() any() eval() isinstance() pow() sum() basestring() execfile() issubclass() print() super() bin() file() iter() property() tuple() bool() filter() len() range() type() bytearray() float() list() raw_input() unichr() callable() format() locals() reduce() unicode() chr() frozenset() long() reload() vars() classmethod() getattr() map() repr() xrange() cmp() globals() max() reversed()zip() Zip() compile() hasattr() memoryview() round() __import__() complex() hash() min() set() apply() delattr() help() next() setattr() buffer() dict() hex() object() slice() coerce() dir() id() oct() sorted() intern()注意注意在Python 2.7中,print是关键字而不是函数。另外,Python 3没有内置函数unicode() 。这两个单词都不应用作变量名。附录附录B文本编辑器
pdf 文件大小:4.68MB