python import geoip2.database reader = geoip2.database.Reader('path_to_geoip_database_file') python response = reader.city('192.168.1.1') country = response.country.name city = response.city.name latitude = response.location.latitude longitude = response.location.longitude python reader.close()


上一篇:
下一篇:
切换中文