Python 2:str.title()(使字符串每个单词首字母大写)时间:2023-03-09 06:38:16 name = "hello,world! hello,python!" print(name.title()) #单词首字母大写 运行结果将会是:Hello,World!Hello,Python!