我有一个.csv文件如下:
OLD,NEW AA,XX BB,YY CC,ZZ
我想把它转换为dict格式,比如dict1 = {'AA':'XX','BB':'YY','CC':'ZZ'}我应该使用DictReader还是加入字符串?
python csv
csv ×1
python ×1