使用 Python 生成 google 格式的随机地图数据
Generate Random maps data in google maps like format using Python
如何在 google 地图格式中生成随机数据,例如 29.299332、52.892959?
为此目的,您更喜欢任何套餐吗?
如果你只想要一对 0 到 90 度之间的随机数,为什么不直接使用 random 包呢?
import random
print([random.random()*90, random.random()*90]) #[34.050498339418986, 5.622759330528135]
如何在 google 地图格式中生成随机数据,例如 29.299332、52.892959?
为此目的,您更喜欢任何套餐吗?
如果你只想要一对 0 到 90 度之间的随机数,为什么不直接使用 random 包呢?
import random
print([random.random()*90, random.random()*90]) #[34.050498339418986, 5.622759330528135]