中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

Python upper()方法

Python 字符串 Python 字符串


描述

Python upper() 方法將字符串中的小寫字母轉為大寫字母。

語法

upper()方法語法:

str.upper()

參數

  • NA。

返回值

返回小寫字母轉為大寫字母的字符串。

實例

以下實例展示了 upper()函數的使用方法:

#!/usr/bin/python

str = "this is string example....wow!!!";

print "str.upper() : ", str.upper()

以上實例輸出結果如下:

str.upper() :  THIS IS STRING EXAMPLE....WOW!!!

Python 字符串 Python 字符串

其他擴展