Python upper()

upper() 方法将字符串中的小写字母转为大写字母。

upper 英语鞋面,上面等等,用在python中是把字符串中的小写字母变成大写字母。

1 temp ="hey"
2 print(temp)
3 temp_new = temp.upper()
4 print(temp_new)
原文地址:https://www.cnblogs.com/60tian/p/6388518.html