6.upper()用法
1)用法解释
def upper(self, *args, **kwargs): # real signature unknown
“”" Return a copy of the string converted to uppercase. “”"
pass
2)使用实例
eg:有如下实例:
str1=“ONE”
print(str1)
print(str1.upper())

上述实例输出结果为:
one
ONE

更多推荐

Python基础语法-菜鸟教程-函数用法:upper()