发布:完整项目代码(三视图 + 词条数据 + 加载页等)
This commit is contained in:
@@ -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)}',")
|
||||
|
||||
Reference in New Issue
Block a user