这是编码格式错误,你在代码前面添加 #-*-coding:utf-8-*-
urllib.request.urlretrieve(imgurl,'d://google.png')不是html是png,PNG格式用ASCII编码打开当然是乱码啦