您在這裡

Exercises

24 二月, 2015 - 11:50

Exercise 13.1 Change either the www.py4inf.com/code/geojson.py or www.py4inf.com/code/geoxml.py to print out the two-character country code from the retrieved data. Add error checking so your program does not traceback if the country code is not there. Once you have it working, search for “Atlantic Ocean” and make sure it can handle locations that are not in any country.