使用方法 链接到标题 master ✗ $ python csv2json.py --help Usage: csv2json.py [OPTIONS] Convert csv file to json file. Options: --csv_file TEXT Input csv file abspath --json_file TEXT Output json file abspath --help Show this message and exit. 如果执行成功,命令行输出会像下面示例一样。
master ✗ $ python csv2json.py --csv_file ./test.csv --json_file ./yiran-test.json Convert csv file success, json file path is ./yiran-test.json 如果执行失败,则会提示具体失败原因。如:csv 文件无法找到。
master ✗ $ python csv2json.py --csv_file ./tes.csv --json_file ./yiran-test.json Failed to convert csv file with error [Errno 2] No such file or directory: u'.