with open(host_temp,'r+') as file: content=file.read() print(content) file.write(redirect+ " "+web + "\n")
此代码始终显示:
Traceback (most recent call last): File "./website_blocker.py", line 4, in file.write(redirect+ " "+web + "\n") IOError: [Errno 0] Error
如何解决这个问题???