Skip to content

Instantly share code, notes, and snippets.

@sharuijinfriend
sharuijinfriend / gist:72527ef9a55a824faeb086c69da085a1
Last active September 5, 2020 08:14
2020/09/05兆易创新笔试题(buffer串行接口通信/个人瞎写不确定是否有逻辑语法错误)
module Buffer
(
input clk,
input rstn,
input DATA_IN,
input REQ_READ,
input ACK,
output REQ_WRITE,
output [15:0] DATA_OUT
);

教育网ipv6连接Google的香港、台北、新加坡、韩国、东京都是经过香港的HKIX节点进行交换的。可以用下面这个例子来测试一下

import requests
url_params = {'name':'www.google.com','type':'aaaa','edns_client_subnet':'175.45.20.138'}
url='https://dns.google.com/resolve'
# url='https://9.9.9.9/dns-query'
r = requests.get(url,params = url_params).json()
print(r)

返回的结果(175.45.20.138是一个香港ip):