字符串大小写

# 字符串大小写

s = 'learn python3'
s = s.upper()   # 转换字母,大写
print(s, s.isupper())  # 判断字母,是否为大写

s = s.lower()   # 转换字母,小写
print(s, s.islower())  # 判断字母,是否为小写

 

posted @ 2019-01-30 10:43  怒放吧!  阅读(387)  评论(0编辑  收藏  举报
我的