比如:http://www.ed2000.com/Type/图书 这个网址,好像就会报错,请问:#-*-coding:utf-8-*-
from urllib.request import urlopen
from bs4 import BeautifulSoup
import re
resp = urlopen("http://www.ed2000.com/Type/图书").read().decode("utf-8")报错:UnicodeEncodeError: 'ascii' codec can't encode characters in position 10-11: ordinal not in range(128)该怎么写?
添加回答
举报
0/150
提交
取消