From c5821d3bbc23f30c6aa4eb2706cb07edd5539727 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Sun, 29 Nov 2020 14:32:38 +0800 Subject: [PATCH] update --- biliReleaseInfo.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/biliReleaseInfo.py b/biliReleaseInfo.py index 5cf9d13..9225ea2 100644 --- a/biliReleaseInfo.py +++ b/biliReleaseInfo.py @@ -106,9 +106,9 @@ if exists(fn): r = Session() w = xlwt.Workbook(encoding='utf8') a: xlwt.Worksheet = w.add_sheet('下载量') -firstl = ['版本', 'origin', 'linux', 'mac', 'windows', 'windows10_x64', - 'windows10_x64_exe', 'windows_x64', 'windows_x64_exe', 'window_x86', 'windows_x86_exe'] -firstlc = [1.2, 0.7, 0.5, 0.5, 0.7, 1.2, 1.6, 1.1, 1.5, 1.1, 1.5] +firstl = ['版本', 'origin', 'linux', 'mac', 'windows', 'windows10_x64', 'windows10_x64_exe', + 'windows_x64', 'windows_x64_exe', 'window_x86', 'windows_x86_exe', '总计'] +firstlc = [1.2, 0.7, 0.5, 0.5, 0.7, 1.2, 1.6, 1.1, 1.5, 1.1, 1.5, 0.7] for k in range(len(firstl)): a.write(0, k, firstl[k]) c: xlwt.Column = a.col(k) @@ -149,4 +149,7 @@ if row > 1: z = chr(zc + k) a.write(row + 1, k + 1, xlwt.Formula(f"SUM({z}2:{z}{row})/COUNTA({z}2:{z}{row})")) +a.set_panes_frozen('1') +a.set_vert_split_pos(1) +a.set_horz_split_pos(1) w.save(fn)