字符串用法总结 1、将首字母大写 test = 'alex' v = test.capitalize() print(v)结果:'Alex' 2、将所有的大写字母变成小写 test = 'aLEx' v = test.casefold() print(v)结果:'alex' 3、replace替换~ Read More
posted @ 2018-10-16 18:10 九霄风云 Views(267) Comments(0) Diggs(0)