forked from tdwojak/Python2017
12 lines
240 B
Python
12 lines
240 B
Python
import requests
|
|
import json
|
|
|
|
def script():
|
|
page='https://api.fixer.io/latest'
|
|
r=requests.get(page)
|
|
r.status_code
|
|
r.encoding
|
|
r.text
|
|
data_json=r.json()
|
|
print(data_json['rates'],data_json['rates'].values())
|
|
script() |