Python中字符串的常用方法。
1、find(), index(),count(),replace(),split()方法。如图。



2、capitalize, title, startswith,endswith, lower方法。例子如图。



3、upper, ljust, rjust, center, lstrip方法。例子如图。



4、rstrip, strip, rfind, rindex, partition例子如图。



5、rpartition, splitlines, isalpha, isdigit方法,例子如图。



6、isalnum, isspace, join方法。如图。


