【python】 字符串转换大小写

来源:互联网 发布:公司电脑加密软件 编辑:程序博客网 时间:2024/05/16 06:32

s = 'hEllo pYthon'

#转换成大写

print s.upper()

#转换成小写

print s.lower()
0 0
原创粉丝点击