Created
October 14, 2015 22:30
-
-
Save LuanP/7564987846fa0b3e978f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import time | |
def create_file(): | |
with open('/tmp/arquivo', 'w') as f: | |
f.write('you just found level 3') | |
def remove_file(): | |
os.remove('/tmp/arquivo') | |
def loop(): | |
while True: | |
create_file() | |
time.sleep(10) | |
remove_file() | |
time.sleep(10) | |
if __name__ == '__main__': | |
loop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment