…… # at 4356297 #220402 14:12:19 server id 1 end_log_pos 4356362 CRC32 0xeb816e97 Anonymous_GTID last_committed=5723 sequence_number=5 724 rbr_only=yes /*!50718 SET TRANSACTION ISOLATION LEVEL READ COMMITTED*//*!*/; SET @@SESSION.GTID_NEXT= 'ANONYMOUS'/*!*/; # at 4356362 #220402 14:12:19 server id 1 end_log_pos 4356439 CRC32 0x91cd3acc Query thread_id=45 exec_time=0 error_code=0 SET TIMESTAMP=1648879939/*!*/; BEGIN /*!*/; # at 4356439 #220402 14:12:19 server id 1 end_log_pos 4356548 CRC32 0x6635890f Table_map: `gogoal_v2`.`rpt_target_price_adjust` mapped t o number 226 # at 4356548 #220402 14:12:19 server id 1 end_log_pos 4356766 CRC32 0xa3f8f451 Write_rows: table id 226 flags: STMT_END_F
BINLOG ' Q+lHYhMBAAAAbQAAAMR5QgAAAOIAAAAAAAEACWdvZ29hbF92MgAXcnB0X3RhcmdldF9wcmljZV9h ZGp1c3QAFAMDDw8PAwMPDwoKBQUFAxISCBISETwAlgDCAZYAWAIICAgAAAAA/v8PD4k1Zg== Q+lHYh4BAAAA2gAAAJ56QgAAAOIAAAAAAAEAAgAU////AAD8HekUABzdFQAGMDAwMDAyB+S4h+en kUE3AOS4h+enkUHvvJrliKnmtqbnjofljovlipvph4rmlL7vvIzmlrDkuJrliqHlhZHnjrDlop7p lb8WAAAAPQAAAAzlub/lj5Hor4HliLgXAOmDremVhyzkuZDliqDmoIss6YKi6I6YgcwPS8wPKVyP wvVoPEAzMzMzM3M5QGZmZmZmJjNAAgAAAJmshMqAmayEyoBC83pdAQAAAFH0+KM= '/*!*/; ### INSERT INTO `gogoal_v2`.`rpt_target_price_adjust` ### SET ### @1=1370397 ### @2=1432860 ### @3='000002' ### @4='万科A' ### @5='万科A:利润率压力释放,新业务兑现增长' ### @6=22 ### @7=61 ### @8='广发证券' ### @9='郭镇,乐加栋,邢莘' ### @10='2022:04:01' ### @11='2022:02:11' ### @12=28.410000000000000142 ### @13=25.449999999999999289 ### @14=19.149999999999998579 ### @15=2 ### @16='2022-04-02 12:42:00' ### @17='2022-04-02 12:42:00' ### @18=5863306050 ### @19=NULL ### @20=NULL # at 4356766 #220402 14:12:19 server id 1 end_log_pos 4356797 CRC32 0x5d69576f Xid = 715129 COMMIT/*!*/; # at 4356797 #220402 14:12:19 server id 1 end_log_pos 4356862 CRC32 0x941d7ebe Anonymous_GTID last_committed=5724 sequence_number=5725 rbr_only=yes /*!50718 SET TRANSACTION ISOLATION LEVEL READ COMMITTED*//*!*/; SET @@SESSION.GTID_NEXT= 'ANONYMOUS'/*!*/; # at 4356862 #220402 14:12:19 server id 1 end_log_pos 4356939 CRC32 0x25f3bc96 Query thread_id=45 exec_time=0 error_code=0 SET TIMESTAMP=1648879939/*!*/; BEGIN /*!*/; # at 4356939 #220402 14:12:19 server id 1 end_log_pos 4357048 CRC32 0x94e54d42 Table_map: `gogoal_v2`.`rpt_target_price_adjust` mapped to number 226 # at 4357048 #220402 14:12:19 server id 1 end_log_pos 4357304 CRC32 0x6be0ae0b Write_rows: table id 226 flags: STMT_END_F ……
total 1221304 drwx------ 2 mysql mysql 1024 Apr 7 06:25 ./ drwxr-xr-x 8 root root 1024 Apr 6 20:14 ../ -rw-r----- 1 mysql mysql 164683302 Mar 26 06:25 mysql-bin.000001 -rw-r----- 1 mysql mysql 1146243 Mar 27 06:25 mysql-bin.000002 -rw-r----- 1 mysql mysql 5487816 Mar 28 06:25 mysql-bin.000003 -rw-r----- 1 mysql mysql 176003823 Mar 29 06:25 mysql-bin.000004 -rw-r----- 1 mysql mysql 180791383 Mar 30 06:25 mysql-bin.000005 -rw-r----- 1 mysql mysql 189424937 Mar 31 06:25 mysql-bin.000006 -rw-r----- 1 mysql mysql 177521662 Apr 1 06:25 mysql-bin.000007 -rw-r----- 1 mysql mysql 1704056 Apr 1 10:43 mysql-bin.000008 -rw-r----- 1 mysql mysql 172659973 Apr 2 06:25 mysql-bin.000009 -rw-r----- 1 mysql mysql 4357335 Apr 2 18:28 mysql-bin.000010 -rw-r----- 1 mysql mysql 1212646 Apr 2 22:33 mysql-bin.000011 -rw-r----- 1 mysql mysql 5055220 Apr 6 17:01 mysql-bin.000012 -rw-r----- 1 mysql mysql 166213563 Apr 7 06:25 mysql-bin.000013 -rw-r----- 1 mysql mysql 4326594 Apr 7 14:12 mysql-bin.000014 -rw-r----- 1 mysql mysql 504 Apr 7 06:25 mysql-bin.index
total 1732017 drwx------ 2 mysql mysql 1024 Apr 12 13:39 ./ drwxr-xr-x 8 root root 1024 Apr 6 20:14 ../ -rw-r----- 1 mysql mysql 164683302 Mar 26 06:25 mysql-bin.000001 -rw-r----- 1 mysql mysql 1146243 Mar 27 06:25 mysql-bin.000002 -rw-r----- 1 mysql mysql 5487816 Mar 28 06:25 mysql-bin.000003 -rw-r----- 1 mysql mysql 176003823 Mar 29 06:25 mysql-bin.000004 -rw-r----- 1 mysql mysql 180791383 Mar 30 06:25 mysql-bin.000005 -rw-r----- 1 mysql mysql 189424937 Mar 31 06:25 mysql-bin.000006 -rw-r----- 1 mysql mysql 177521662 Apr 1 06:25 mysql-bin.000007 -rw-r----- 1 mysql mysql 1704056 Apr 1 10:43 mysql-bin.000008 -rw-r----- 1 mysql mysql 172659973 Apr 2 06:25 mysql-bin.000009 -rw-r----- 1 mysql mysql 4357335 Apr 2 18:28 mysql-bin.000010 -rw-r----- 1 mysql mysql 1212646 Apr 2 22:33 mysql-bin.000011 -rw-r----- 1 mysql mysql 5055220 Apr 6 17:01 mysql-bin.000012 -rw-r----- 1 mysql mysql 166213563 Apr 7 06:25 mysql-bin.000013 -rw-r----- 1 mysql mysql 173374732 Apr 8 06:25 mysql-bin.000014 -rw-r----- 1 mysql mysql 171723561 Apr 9 06:25 mysql-bin.000015 -rw-r----- 1 mysql mysql 471311 Apr 10 06:25 mysql-bin.000016 -rw-r----- 1 mysql mysql 3800429 Apr 11 06:25 mysql-bin.000017 -rw-r----- 1 mysql mysql 176073129 Apr 12 06:25 mysql-bin.000018 -rw-r----- 1 mysql mysql 1845781 Apr 12 12:41 mysql-bin.000019 -rw-r----- 1 mysql mysql 684 Apr 12 06:25 mysql-bin.index
with pd.ExcelWriter(f"xxx.xlsx", engine="openpyxl", date_format="YYYY-MM-DD", datetime_format="YYYY-MM-DD HH:MM:SS" ) as writer: df.to_excel(writer) sheet = writer.sheets["Sheet1"] # 设置列宽 sheet.column_dimensions['A'].width = 12.5 # 设置行高 sheet.row_dimensions[1].height = 72 # 设置表头(第一行)自动换行 r = sheet[1] for c in r: c.alignment = openpyxl.styles.Alignment(wrapText=True) # 设置表体数字格式显示4位小数 for i, r in enumerate(sheet): for j, c in enumerate(r): if i != 0 and j != 0: c.number_format = "0.0000"