>>> test.endswith('2]')
True
def expandtabs(self, tabsize=8): # 返回字符串的特定格式化...)
'1 23 45 6'
def find(self, sub, start=None, end=None): # 返回sub在str中所发现的最小索引... >>> test.find('a')
-1
def format(*args, **kwargs): # 字符串格式化... '123aa456aa789'
def rfind(self, sub, start=None, end=None): # 返回sub在str中最后出现的索引号... 找不到返回-1;
def rindex(self, sub, start=None, end=None): # 返回sub在str中最后出现的索引号