# 字符串大小写 s = 'learn python3' s = s.upper() # 转换字母,大写 print(s, s.isupper()) # 判断字母,是否为大写 s = s.lower() # 转换字母,小写 print(s, s.islower()) # 判断字母,是否为小写
# 字符串大小写 s = 'learn python3' s = s.upper() # 转换字母,大写 print(s, s.isupper()) # 判断字母,是否为大写 s = s.lower() # 转换字母,小写 print(s, s.islower()) # 判断字母,是否为小写
转载于:https://www.cnblogs.com/ShuComputerProgram/p/10337090.html