a.rstrip():返回删除了结尾空格的字符串S的副本。如果给定了chars而不是None,则改为删除chars中的字符。
def rstrip(self, chars=None):
"""
S.rstrip([chars]) -> str
Return a copy of the string S with trailing whitespace removed.
If chars is given and not None, remove characters in chars instead.
"""
return ""
a.split():使用sep作为分隔符字符串,返回S中单词的列表。 如果给出maxsplit,则最多完成maxsplit分割。 如果未指定sep或为None,则任何空格字符串都是分隔符,并且从结果中删除空字符串。
def split(self, sep=None, maxsplit=-1):
"""
S.split(sep=None, maxsplit=-1) -> list of strings
Return a list of the words in S, using sep as the
delimiter string. If maxsplit is given, at most maxsplit
splits are done. If sep is not specified or is None, any
whitespace string is a separator and empty strings are
removed from the result.
"""
return []