私はPythonメーリングリストを作成していますが、機能の最後に問題がありました。あなたが入力した場合入力プロンプトでPythonリストを作成する方法はありますか?
mailinputs = raw_input('Enter all mails with comma: ')
receivers = [mailinputs]
:
['[email protected]', '[email protected]', '[email protected]']
私の現在のコード:
問題があり、リストは次のようにする必要があり
'[email protected]', '[email protected]', '[email protected]'
をエラーは次のように起動します:
Probe failed: Illegal envelope To: address (invalid domain name):
エルス
は、あなたが入力した場合:
[email protected], [email protected], [email protected]
のみ[email protected]がメールを受信します。
どうすればよいですか?
あなたは辞書ではなく、リストを意味します。 –
ええ、すみません。 –