python中字符串大小写转换

  1. 全部转换为大写 str.upper()
  2. 全部转换为小写: str.lower()
  3. 首字母大写: str.title()