Created
July 11, 2013 12:20
-
-
Save comfuture/5974971 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def xxrange(start, stop, step=1): | |
cur = start | |
while cur < stop: | |
yield cur | |
cur += step | |
locs = reversed([(lat, lng) for lat in xxrange(18.0, 64.0, 0.1) \ | |
for lng in xxrange(-124.0, -66.0, 0.1) if lat is not lng]) | |
for i, loc in enumerate(locs): | |
print i, loc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment