mirror of
https://github.com/netfun2000/ip2region.git
synced 2026-02-27 09:44:31 +08:00
stdlize the result print
This commit is contained in:
@@ -77,7 +77,7 @@ def start_search(dbFile="", cachePolicy="vectorIndex"):
|
||||
print(error)
|
||||
return
|
||||
|
||||
print(f"region :{region_str} , took {round((time.time()-start)*1000.00, 4)} ms")
|
||||
print(f"{{region: {region_str} , took: {round((time.time()-start)*1000.00, 4)} ms}}")
|
||||
# quit
|
||||
searcher.close()
|
||||
print("searcher test program exited, thanks for trying")
|
||||
|
||||
Reference in New Issue
Block a user