python转大写
要将字符串转换为大写,可以使用字符串的upper()方法。
例如:
s = "hello world"
s_upper = s.upper()
print(s_upper)
输出:
HELLO WORLD
原文地址: https://www.cveoy.top/t/topic/jcSI 著作权归作者所有。请勿转载和采集!
安全问答是一个知识全球问答,包含丰富的问答知识
要将字符串转换为大写,可以使用字符串的upper()方法。
例如:
s = "hello world"
s_upper = s.upper()
print(s_upper)
输出:
HELLO WORLD
原文地址: https://www.cveoy.top/t/topic/jcSI 著作权归作者所有。请勿转载和采集!