➜

This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

作者 py.user
收信人 py.user
日期 2011-06-05.05:54:58
SpamBayes Score 0.0052688634
Marked as misclassified 否
Message-id <1307253299.62.0.8609224268.issue12266@psf.upfronthosting.co.za>
In-reply-to
内容
specification

str.capitalize()¶

    Return a copy of the string with its first character capitalized and the rest lowercased.


>>> '\u1ffc', '\u1ff3'
('ῼ', 'ῳ')
>>> '\u1ffc'.isupper()
False
>>> '\u1ff3'.islower()
True
>>> s = '\u1ff3\u1ff3\u1ffc\u1ffc'
>>> s
'ῳῳῼῼ'
>>> s.capitalize()
'ῼῳῼῼ'
>>>

A: lower
B: title

A -> B & !B -> A
历史
日期 用户 动作 参数
2011-06-05 05:54:59py.user修改recipients: + py.user
2011-06-05 05:54:59py.user修改messageid: <1307253299.62.0.8609224268.issue12266@psf.upfronthosting.co.za>
2011-06-05 05:54:59py.user链接issue12266 messages
2011-06-05 05:54:58py.user创建