Created
October 21, 2017 08:48
-
-
Save boochow/3569fcf3cbdd883ad90bb6b873487845 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 main(): | |
import urequests | |
r = urequests.get('http://api.fixer.io/latest?base=USD&symbols=JPY') | |
j = r.json() | |
print(j["date"]) | |
print("JPY/" + j["base"] + ": " + str(j["rates"]["JPY"])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://blog.boochow.com/article/454341667.html