s = 'hello world!'
# 转换为大写
print(s.upper())
# 转换为小写
print(s.lower())
# 大小写转换
print(s.swapcase())
# 首字母大写
print(s.capitalize())
# 每个单词首字母大写
print(s.title())
# 用指定的新内容替换就内容,count待定
print(s.replace('l', 'L'))
s = 'hello world!'
# 转换为大写
print(s.upper())
# 转换为小写
print(s.lower())
# 大小写转换
print(s.swapcase())
# 首字母大写
print(s.capitalize())
# 每个单词首字母大写
print(s.title())
# 用指定的新内容替换就内容,count待定
print(s.replace('l', 'L'))