将每一个分隔开的字符的首字母大写
def capitalize_every_word(s):
print(s)
# hello world!
print(s.title())
capitalize_every_word('hello world!')
# Hello World!

2020-05-03
本文来自博客园,作者:Hany47315,转载请注明原文链接:https://www.cnblogs.com/hany-postq473111315/p/12821790.html

浙公网安备 33010602011771号