尝试输出到文本文件时出现以下错误:io.UnsupportedOperation: not writable
任何帮助表示赞赏。谢谢
f = open("google-searches.txt", "w+") for item in results: google_searches.write("%s\n" % item)
python loops
loops ×1
python ×1