发布:完整项目代码(三视图 + 词条数据 + 加载页等)

This commit is contained in:
2026-09-19 16:53:18 +08:00
parent e3fd805de2
commit 906e53f1d5
16 changed files with 1758 additions and 464 deletions
+3
View File
@@ -7,6 +7,8 @@
import random
import math
from region_codes import make_code
N = 1000
random.seed(20240101)
@@ -90,6 +92,7 @@ lines = ["// 压力测试用合成词条数据(1000 条)",
for i, (time, tn, region, name, cat, sketch, lat, lng, desc) in enumerate(entries, 1):
lines.append(" {")
lines.append(f" id: 'No.{i:03d}',")
lines.append(f" code: '{esc(make_code(tn, region, lat, lng, i, name, cat))}',")
lines.append(f" time: '{esc(time)}',")
lines.append(f" timeNumeric: {tn},")
lines.append(f" region: '{esc(region)}',")