python 存储csv文件_python 读取 postgreSQL 数据保存CSV文件
self.cursor.copy_expert("COPY (%s) TO STDOUT DELIMITER '`'"%(cmd),open(self.dump_file,"w"))import psycopg2import osimport csvROOT_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__))...