FileNotFoundError:[Errno 2]没有这样的文件或目录:' abc.txt'

时间:2016-02-14 08:35:54

标签: file python-3.x beautifulsoup

with open(filename, "r+b") as reviewfile:
    with open('database_set.txt', "wb") as aprior:
        reviewfile.write("\n \t \t \t \t \t" + titlelist[user_choice - 1])
        reviewfile.write("\n \n \t \t \t \t \tAverage rating " +
                         str(avg_rating) + " based on " + str(total_no_ratings) + " ratings")

我正在尝试从网站检索产品评论,但它显示此错误。

0 个答案:

没有答案