获取美元人民币实时汇率-Python版

本文介绍如何使用Python获取美元人民币实时汇率

# -*- coding: utf-8 -*-
# @Author: 比特量化
# @Date:   2017-08-26

import re
import json
import urllib.request

url = "http://webforex.hermes.hexun.com/forex/quotelist?code=FOREXUSDCNY&column=Code,Price"
req = urllib.request.Request(url)
f = urllib.request.urlopen

猜你喜欢

转载自blog.csdn.net/bitquant/article/details/105793714