#!/usr/bin/env python
# -*- encoding: utf-8 -*-import sys
import json
import os
import pandas as pd"""
@description:将list存为csv文件
@param {*}
@return {*}
"""@staticmethod
def list_to_csv(list_data, csv_file):if len(list_data) > 0:columns = list(list_data[0].keys())df = pd.DataFrame(columns=columns, data=list_data)df.to_csv(csv_file, mode="a", encoding="utf_8_sig", header=1, index=0)list_to_csv(plan_list, r"d:\list.csv")