标签:div oob col str amp run from this rom
Python upper() 方法将字符串中的小写字母转为大写字母。
upper()方法语法:
str.upper()
返回小写字母转为大写字母的字符串。
以下实例展示了 upper()函数的使用方法:
1 #!/usr/bin/python3 2 3 str = "this is string example from runoob....wow!!!"; 4 5 print ("str.upper() : ", str.upper())
以上实例输出结果如下:str.upper() : THIS IS STRING EXAMPLE FROM RUNOOB....WOW!!!
标签:div oob col str amp run from this rom
原文地址:https://www.cnblogs.com/dillon-china/p/9256891.html