pycharm 编译单个语句时发现多个语句 错误如何解决

问题遇到的现象和发生背景

使用PyCharm 2021.3.2初学爬虫

问题相关代码,请勿粘贴截图

from urllib.request import urlopen
url="https://www.baidu.com/"
resp=urlopen(url)
print(resp.read()

运行结果及报错内容

错误:SyntaxError: multiple statements found while compiling a single statement

我的解答思路和尝试过的方法

没有尝试过其他方法

我想要达到的结果

代码正常运行

print(resp.read())

少加一个括号