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

在python中使用upper函数的方法

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

upper()函数语法:

str.upper()

upper()函数使用方法:

str = \"hello world\";

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

输出结果为:

str.upper() : HELLO WORLD

发表评论 取消回复

很抱歉,您暂时无法发布评论。需要 登录 后才能发布。

返回评论 返回顶部