pym = mysql(host='#####', port=3306, user='######', password='########', database='algorithm') #查询数据 charge_sql = 'SELECT log_date, campaign_id, campaign_name,roi,ad_pv,click,charge,ecpc,ecpm,avg_access_page_num,alipay_inshop_amt FROM zuanshi.report_…