在python中使用upper函数的方法
upper:upper()函数的作用是将字符串中的小写字母转为大写字母。
upper()函数语法:
str.upper()
upper()函数使用方法:
str = \"hello world\";print \"str.upper() : \", str.upper()
str = \"hello world\";
print \"str.upper() : \", str.upper()
输出结果为:
str.upper() : HELLO WORLD
上一篇:doss攻击服务器,高防服务器有什么作用
下一篇:cdn防护,租用美国服务器能提供哪些网络测试