Python 字符串 upper() 方法实例定义和用法语法参数值Python 字符串 upper() 方法实例大写字符串: txt = "Hello my friends" x = txt.upper() print(x) 定义和用法upper() 方法返回一个字符串,其中所有字符均大写。 符号和数字将被忽略。 语法string.upper() 参数值无参数