小册名称:Python合辑4-130个字符串操作示例
在 Python 中将字符串更改为大写
x = 'canada'x = x.upper()print(x)
x = 'canada'
x = x.upper()
print(x)
Output:
CANADA