003《Python数据分析、挖掘与可视化(第2版)》/例3-9.py
text = input('请输入一个字符串:') table = ''.maketrans('aeoiu', 'AEOIU') print(text.translate(table))