描述: Python upper() 方法将字符串中的小写字母转为大写字母。 语法: str.upper() 参数: NA。 返回值: 返回小写字母转为大写字母的字符串。 实例: >>> sen="My motherland is the people's Republic of China" >>> sen.upper() "MY MOTHERLAND IS THE PEOPLE'S REPUBLIC OF CHINA"