Python 字符串String delete character Python 字符串String translate() 方法 Python 字符串String upper() 方法 Python 字符串String delete character #!/usr/bin/python from string import maketrans # Required to call maketrans function. intab = "aeiou" outtab = "12345" trantab = maketrans(intab, outtab) str = "this is string example....wow!!!"; print str.translate(trantab, 'xm') Python 字符串String translate() 方法 Python 字符串String upper() 方法