字符串的操作方法

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
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-05-28
  • 2021-06-27
  • 2021-09-21
  • 2021-07-17
  • 2021-12-12
相关资源
相似解决方案