We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3313be6 commit 46590f1Copy full SHA for 46590f1
1 file changed
Gps808_flask_辅助/check_config.py
@@ -2,8 +2,8 @@
2
from openpyxl import load_workbook
3
from collections import defaultdict
4
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'
+xlsx_path = r'config_20260601223310right.xlsx'
+output_path = r'rt.txt'
7
8
wb = load_workbook(xlsx_path)
9
ws = wb['Sheet1']
@@ -109,6 +109,7 @@ def validate(row_idx, row):
109
for row in rows:
110
if row[headers.index('terminal_phone')]:
111
phone_count[row[headers.index('terminal_phone')]] += 1
112
+ f.write(f" 终端电话总数: {len(phone_count)}\n")
113
for phone, cnt in sorted(phone_count.items(), key=lambda x: -x[1]):
114
f.write(f" {phone}: {cnt}条\n")
115
0 commit comments