搭建pptp服务器,python中如何使用upper函数

python中如何使用upper函数

在python中使用upper函数的方法

upper:upper()函数的作用是将字符串中的小写字母转为大写字母。

upper()函数语法:

str.upper()

upper()函数使用方法:

str = \"hello world\";

print \"str.upper() : \", str.upper()

输出结果为:

str.upper() : HELLO WORLD

赞(0)
未经允许不得转载:主机测评网 » 搭建pptp服务器,python中如何使用upper函数
分享到: 更多 (0)