python中字符串函数的用法_python中字符串内置函数的用法总结
capitalize() 首字母大写a='someword'b=a.capitalize()print(b)—>Somewordcasefold()&lower() 所有字母变小写,casefold可将未知字符便小写a='someWORD'b=a.casefold()print(b)c=a.lower()print(c)—>someword—>somewordcenter(width,fillch...