pax*_*blo 7 python string find deprecated
该文档的Python 2.7列表string.find作为已弃用的功能,但不(不像atoi和atol)提供一种替代.
我现在在2.7编码,所以我很乐意使用它,但我想知道:
几乎整个string模块都已str作为方法函数移动到类型.
string当您需要的几乎所有内容都已成为字符串类型的一部分时,为什么使用该模块?
http://docs.python.org/library/stdtypes.html#str.find
字符串类型 - 及其方法 - 不推荐使用.实际上,我将变形为在Python 3中包含Unicode.