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

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

发布了25 篇原创文章 · 获赞 0 · 访问量 213

猜你喜欢

转载自blog.csdn.net/qq_33410995/article/details/104186357