今回は、Pythonのcsvモジュールを使用し、辞書型のリストのデータをCSVファイルとして出力させてみました。 CSVでのデータ出力はよく使われると思いますので、よかったら参考にしてみてください。 CSVファイルの読み書きを行うための機能を提供してくれます。
Hi, it seems that csv.DictWriter is assuming dictionary keys will always be strings I've found it useful to use IntEnum keys with DictWriter to avoid having magic strings and write metadata rows ...
After reading the pylint issue, I opened an issue in cpython python/cpython#92391 to add __class_getitem__. Happy to provide a PR, not sure though if that's the way to go now though after your last ...