22222

import pandas as pd
import json
from pandas import json_normalize
data = '''
    {
    "technologies":
            [
            { "Courses": "Spark", "Fee": 22000,"Duration":"40Days"},
            { "Courses": "PySpark","Fee": 25000,"Duration":"60Days"},
            { "Courses": "Hadoop", "Fee": 23000,"Duration":"50Days"}
            ],
    "status": ["ok"]
    }
    '''
print(data)
import requests
import json

def get_bitcoin_price():
    url = 'http://api.bitcoincharts.com/v1/weighted_prices.json'
    response = requests.get(url)
    data = json.loads(response.text)
    return data['USD']['7d']

if __name__ == '__main__':
    print(get_bitcoin_price())

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *

Scroll to Top