Python upper()

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

 

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

 

1 temp ="hey"
2 print(temp)
3 temp_new = temp.upper()
4 print(temp_new)

 

posted @ 2017-02-11 00:50  60tian  阅读(197)  评论(0编辑  收藏  举报