📜  bash python csv to json - Python 代码示例
📅  最后修改于: 2022-03-11 14:45:23.615000             🧑  作者: Mango
代码示例1
cat my.csv | python -c 'import csv, json, sys; print(json.dumps([dict(r) for r in csv.DictReader(sys.stdin)]))'