Python中的深度字符串函数 [英] Depricated String Functions in Python
问题描述
大家好
任何人都可以帮助我解决Python中所遵循的各种被删除的字符串函数
。
>
例如,string.lower将如何被删除。
就string.lower(''PYTHON'')而言,它被描述为
''PYTHON''。lower()。他们两个都会返回一个输出:>> python
感谢您的输入
问候
Anoop
Anoop写道:
Can任何人都可以帮助我解决各种被删除的字符串函数
后面的Python。
例如,string.lower将如何进行描述。
就string.lower(''PYTHON'')而言,它被描述为
''PYTHON''。lower()。他们两个都会返回一个输出:>> python
我在你的帖子中没有看到这个问题,但是,是的,模块级别
string的函数不推荐使用模块支持str和unicode对象的方法。
Stefan
Anoop写道:
大家好
任何人都可以帮我解决各种被删除的字符串函数
在Python中遵循
。
例如,如何将string.lower描述为。
至于string.lower (''PYTHON'')关注它被描述为
''PYTHON''。lower()。他们两个都会返回一个输出:>> python
感谢您的输入
我不知道这是不是这只是一个英语问题:字符串模块的
函数被删除只是意味着你鼓励使用字符串对象''方法而不是
,因为字符串
模块很可能在将来的某个时间被移除。
问候
Steve
-
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC / Ltd http://www.holdenweb.com
Skype:holdenweb http://holdenweb.blogspot.com
最近的Ramblings http://del.icio.us/steve.holden
<集团kquote> 2006年7月20日下午5:18,Steve Holden写道:
Anoop写道:
>嗨所有
任何人都可以帮助我解决Python中所遵循的各种已删除的字符串函数。
例如,如何将字符串.lower depricated。
就string.lower(''PYTHON'')而言,它被描述为
''PYTHON''。lower()。他们两个都会返回一个输出:>> python
感谢您的输入
我不知道这不仅仅是英语问题:字符串模块的
函数被删除
" depracated"? 功能......是?对我来说,肯定看起来像英语
问题:-)
也许文档应该使用像过时这样简单的单词。或不是
首选或者类似于depr * e * cated。
干杯,
John
Hi All
Can any one help me out with the various depricated string functions
that is followed in Python.
For example how will be string.lower depricated.
As far as string.lower(''PYTHON'') is concerned it is depricated as
''PYTHON''.lower(). Both of them would return an output : >>python
Thanks for your inputs
Regards
Anoop
Anoop wrote:Can any one help me out with the various depricated string functions
that is followed in Python.
For example how will be string.lower depricated.
As far as string.lower(''PYTHON'') is concerned it is depricated as
''PYTHON''.lower(). Both of them would return an output : >>pythonI don''t quite see the question in your post, but, yes, the module level
functions of the "string" module are deprecated in favour of the methods of
the str and unicode objects.
Stefan
Anoop wrote:Hi All
Can any one help me out with the various depricated string functions
that is followed in Python.
For example how will be string.lower depricated.
As far as string.lower(''PYTHON'') is concerned it is depricated as
''PYTHON''.lower(). Both of them would return an output : >>python
Thanks for your inputs
I wonder if this isn''t just an English problem: the fact that the
functions of the string module is depracated just means that you are
encouraged to use the string objects'' methods instead, as the string
module is likely to be removed at some time in the future.
regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden
On 20/07/2006 5:18 PM, Steve Holden wrote:Anoop wrote:>Hi All
Can any one help me out with the various depricated string functions
that is followed in Python.
For example how will be string.lower depricated.
As far as string.lower(''PYTHON'') is concerned it is depricated as
''PYTHON''.lower(). Both of them would return an output : >>python
Thanks for your inputs
I wonder if this isn''t just an English problem: the fact that the
functions of the string module is depracated"depracated"? "functions ... is"? Yup, sure looks like an English
problem to me :-)
Perhaps the docs should use simpler words like "outdated" or "not
preferred" or such-like instead of "depr*e*cated".
Cheers,
John
这篇关于Python中的深度字符串函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!