python字符串大小写转换

# coding=utf-8

s='ADVERSARIAL EXAMPLES IN THE PHYSICAL WORLD'
print s.lower() #所有转小写
print s.upper() #所有转大写
print s.capitalize() #行首字母大写,其他小写
print s.title() #每个单词首字母大写,其他小写
原文地址:https://www.cnblogs.com/wxiaoli/p/6888426.html