def capitalize_every_word(s): print(s) # hello world! print(s.title()) capitalize_every_word(‘hello world!‘) # Hello World!
2020-05-03
将每一个分隔开的字符的首字母大写
原文:https://www.cnblogs.com/hany-postq473111315/p/12821790.html