Running a .py file in a loop
问题 I am currently trying to run a .py file but in a loop. Just for a test I am using I = 0 while I<10: os.pause(10) open(home/Tyler/desktop/test.py) I = I + 1 I am sure this is a very simple question but I can't figure this one out. I would also like to add in the very end of this I have to make this run infinitely and let it run for some other things. 回答1: There are a few reasons why your code isn't working: Incorrect indentation (this may just be how you copied it on to StackOverflow though).