with open 总是用不了,无论怎样都会报错语法错误
import requests
url = 'https://pic.qiushibaike.com/system/pictures/12292/122926302/medium/O6Z3BIKE39GTB6OM.jpg'
img_data = requests.get(url = url).content
with open('./qiutu.jpg','wb') as fp
fp.write(img_data)
File "", line 4
with open('./qiutu.jpg','wb') as fp
^
SyntaxError: invalid syntax