Python エラー'cp932' codec can't encode character
文字コード

f = open('all_names.csv', 'w', encoding='UTF-8')