2016-07-23 pythonで文字置換 # 文字毎に異なる文字へ変更する。 s = input()st = s.translate(str.maketrans('ABCDE', '12345'))