I just used python27 to print the variable in a simple for loop. It can print out a part of the results but it stopped suddenly and appeared the errno 0 and 2 which are described as an IOerror while the process of output. I am super confused with this error
Here is my simple code:
def checkPrint():
for i in range(0,1000):
print i
checkPrint()
And here is the output and error:
0 . . . 287 288 289 290
Traceback (most recent call last):
File ".\checkPrint.py", line 5, in checkPrint()
File ".\checkPrint.py", line 3, in checkPrint print iIOError: [Errno 0] Error
Thanks for your help.
This may not be the asker's scenario, but I was receiving this error anytime I ran the reproduction script in Hyper 1.4.8 (with powershell.exe as my shell).
Using Command Prompt or PowerShell outside of Hyper avoided the error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With