-3
Iいくつかの入力などから生成されたリストがあります:私はこれを行うことができますどのように、すべてのAさんがBさんにリストに変換したい場合Pythonでリストを変換するには?
text = input("Please enter the text you would like to encrypt: ")
textlist = text.split
を?
例:入力:こんにちは私の名前はANA
ある出力:こんにちは私のnbmeがBNB
' '(A」、 'B')こんにちは、私の名前はANA Output'.replace' である。置き換える( 'A'、 'B')'または 'str.translate' –
可能な複製を使用して[文字列中の文字のインスタンスを置換する](http://stackoverflow.com/questions/12723751/replacing-instances-of-a-character-in-a-string) –
[New to Python、文字列](http://stackoverflow.com/questions/35810449/new-to-python-replacing-characters-in-a-string) –