标签: python api
嘿,我在标头上做错了什么,但是我不确定如何解决它。你能帮我吗?
import urllib for x in range (1100,1200): rep = urllib.Request('http://901.0.1.1:3034') rep.add_header('x-api-key',(x)) resp = urllib.urlopen(rep) data =(( rep.read )) print(data)