Python 字符串 capitalize() 方法
定义和用法
The capitalize()
方法返回一个字符串,其中第一个字符为大写,其余字符为小写。
语法
string.capitalize()
参数值
无参数
The capitalize()
方法返回一个字符串,其中第一个字符为大写,其余字符为小写。
string.capitalize()
无参数
If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail:
[email protected]
If you want to report an error, or if you want to make a suggestion, send us an e-mail:
[email protected]