字符串的操作方法 capitalize() : 首字母大写 s1 = 'my heart will go on' print(s1.capitalize()) # 首字母大写 # 执行结果: # My heart will go on capitalize 相关文章: 2022-12-23 2020-03-20 2021-11-24 2021-05-27 2021-09-21