Hi,
I'm pretty new to Python so my IDE is based on a tuto (because the final goal will use Qt4). So, for the moment, I used the strict version as in the tuto.
Here's my code :
Thanks,
Vincent
(seems to be the same problem with 3.6.5 both under Windows environment)
I'm pretty new to Python so my IDE is based on a tuto (because the final goal will use Qt4). So, for the moment, I used the strict version as in the tuto.
Here's my code :
url = 'https://www.test.com' for i in range(5): print(url + str(i)) print('dl') f = open(str(i) + ".html", "wt") f.write('test') f.close print ('end')All files are generated but the last one is always empty. Did I miss something ?
Thanks,
Vincent
(seems to be the same problem with 3.6.5 both under Windows environment)