# ### 字符串相关函数# *capitalize 字符串首字母大写
strvar ="how old are you"
res = strvar.capitalize()print(res)# *title 每个单词的首字母大写
strvar ="how old are you"
res = strvar.title()print(res)# *upper 将所有字母变成大写
strvar ="to be or not to be that is a question"
res = strvar.upper()</