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