دنبال کننده ها

۱۳۹۶ مرداد ۲۷, جمعه

IOError: [Errno 0] Error, in python file handling

[ad_1]





with open(host_temp,'r+') as file:
content=file.read()
print(content)
file.write(redirect+ " "+web + "n")



This Code always shows :





Traceback (most recent call last):
  File "./website_blocker.py", line 4, in 
    file.write(redirect+ " "+web + "n")
IOError: [Errno 0] Error



How can solve this problem???




[ad_2]

لینک منبع