Skip to content

Commit 46590f1

Browse files
author
chusiping
committed
yh
1 parent 3313be6 commit 46590f1

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Gps808_flask_辅助/check_config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
from openpyxl import load_workbook
33
from collections import defaultdict
44

5-
xlsx_path = r'E:\git_15home\python_En_code_git\Gps808_flask_辅助\config_20260324223310.xlsx'
6-
output_path = r'E:\git_15home\python_En_code_git\Gps808_flask_辅助\rt.txt'
5+
xlsx_path = r'config_20260601223310right.xlsx'
6+
output_path = r'rt.txt'
77

88
wb = load_workbook(xlsx_path)
99
ws = wb['Sheet1']
@@ -109,6 +109,7 @@ def validate(row_idx, row):
109109
for row in rows:
110110
if row[headers.index('terminal_phone')]:
111111
phone_count[row[headers.index('terminal_phone')]] += 1
112+
f.write(f" 终端电话总数: {len(phone_count)}\n")
112113
for phone, cnt in sorted(phone_count.items(), key=lambda x: -x[1]):
113114
f.write(f" {phone}: {cnt}\n")
114115

0 commit comments

Comments
 (0)