python基础-大小写转换

str1 = 'Hello,World!'

print(str1.upper)    # 字符串全部转换成大写

print(str1.lower)    # 字符串全部转换成小写

你可能感兴趣的:(python,django,python,后端)