下面是常用的几个系统类的常用方法整理:
list: 列表[1, 2,...]
set: 集合,无重复元素{1, 2,...}
str: 字符串
dict: 字典{a:'a', b:'b',...}...index(sub[, start[, end]]) 跟 find 方法一样,不过如果 sub 不在 string 中会产生一个异常。...rfind(sub[, start[, end]]) 类似于 find() 方法,不过是从右边开始查找。...rindex(sub[, start[, end]]) 类似于 index() 方法,不过是从右边开始。...rjust(width) 返回一个右对齐的字符串,并使用空格填充至长度为 width 的新字符串。
rpartition(sub) 类似于 partition() 方法,不过是从右边开始查找。