python的字符串内建函数7
1、string.isupper():如果字符串中区分大小写的字符都是大写,则返回True。


2、string.isupper():如果字符串中区分大小写的字符不都是大写,则返回False。


3、string.join(seq):以字符串作为分隔符,将序列中所有字符串元素合并为一个新的字符串。


4、string.ljust(width):返回一个原字符串左对齐,并使用空格填充至规定长度的新字符串。


阅读量:137
阅读量:121
阅读量:47
阅读量:94
阅读量:66