title函数:
python中字符串函数,返回’标题化‘的字符串,就是单词的开头为大写,其余为小写。
语法:
x = 'the sun rises from the horizontal line ' print(x.title())
The Sun Rises From The Horizontal Line

title函数:
python中字符串函数,返回’标题化‘的字符串,就是单词的开头为大写,其余为小写。
语法:
x = 'the sun rises from the horizontal line ' print(x.title())
The Sun Rises From The Horizontal Line