使用get方式读取数据 f=urllib.request.urlopen('http://192.168.11.78/cgi-bin/xxx.cgi?type=0&stop=0&channel=0') print(f.read()) #cgi数据读取,并且打印