Created
March 12, 2017 11:09
-
-
Save uitspitss/a365c344a48fb653327101c8d9894103 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
#!python | |
#-*-coding:utf-8-*- | |
import time | |
import shutil | |
def main(): | |
while True: | |
shutil.copy('image.jpg', time.strftime('%Y%m%d-%H%M%S.jpg')) | |
print("cp:", time.strftime('%Y%m%d-%H%M%S.jpg')) | |
time.sleep(10) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment