1
666
file = open(where+"\"+"%s_%d.gif" % (str1,count),'wb')
这句话报错,,,求回复
疾风。意破天晴 发表于 2016-10-19 19:30
自顶一下,明天看反馈
大佬,
else :
continue
file = open(where+"\"+"%s_%d.gif" % (str1,count),'wb')
file.write(fin_img)
file.close()
print("已下载:"+"\n"+"%s_%d.gif" % (str1,count))
count += 1
return count
这段的file = open(where+"\"+"%s_%d.gif" % (str1,count),'wb')
出错了,求回复
11
66666
厉害,才刚学,撒都不懂
https://imgchr.com/i/YNrzDO[/img
]https://imgchr.com/i/YNrxKK
https://imgchr.com/i/YNrjv6
这三个图的代码有问题,第一个和第三个图是引号未闭合,第二张图要把里面的斜杠转义一下。
C:\Users\lenovo\PycharmProjects\untitled\venv\Scripts\python.exe C:/Users/lenovo/PycharmProjects/untitled/123.py
File "C:/Users/lenovo/PycharmProjects/untitled/123.py", line 28
src=re.compile(".{3,4}[ DISCUZ_CODE_0 ]quot;)):
^
SyntaxError: EOL while scanning string literal
Process finished with exit code 1
是什么意思
不会英语的路过一下
唉,容易忘记东西的大脑表示,得反复去查
二十六行是不是少了引号?
for l in h_soup.find_all("img",class_ = re.compile("align.+"),src = re.compile(".{3,4}[ DISCUZ_CODE_0 ]quot;)):
cy黄虫
beautifulsoup怎么使用pip install安装出现报错
学习一下
6
差距怎么这么大呀
先頂再看
营长的大炮 发表于 2020-3-28 08:55
file = open(where+"\"+"%s_%d.gif" % (str1,count),'wb')
这样就好了file = open(where+"\"""+"%s_%d.gif" % (str1,count),'wb')
叼辣条闯世界 发表于 2021-7-10 08:15
二十六行是不是少了引号?
for l in h_soup.find_all("img",class_ = re.compile("align.+"),src = re.com ...
少了个"