注意数据有 \r,如果只使用 a = input() 读入会导致 aaa 中含有 \r 从而替换失败,应在读入之后使用 strip 去除,如 a = input().strip()。
\r
a = input()
strip
a = input().strip()