使用PyCharm 2021.3.2初学爬虫
from urllib.request import urlopenurl="https://www.baidu.com/"resp=urlopen(url)print(resp.read()
错误:SyntaxError: multiple statements found while compiling a single statement
没有尝试过其他方法
代码正常运行
print(resp.read())
少加一个括号