考试不会啊啊啊啊啊啊啊

str="python",想把字符串的第一个字母大写,其他字符小写,正确的选项是:‪‬‪‬‪‬‪‬‪‬‮‬‪‬‫‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‪‬‪‬‪‬‪‬‪‬‪‬‮‬‪‬‮‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬‪‬‪‬‪‬‪‬‪‬‮‬‫‬‭‬
str[0].upper()+str[1:-1]
str[1].upper()+str[-1:1]
str[1].upper()+str[2:]
str[0].upper()+str[1:]

选择最后一个 str[0].upper()+str[1:]