删除字符串首尾的多余字符,strip(),lstrip(),rstrip() 2. ... s = 'abc123456xyz' import string print s.translate(string.maketrans('abc','xyz')) ...
確定! 回上一頁