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 | |
def rename_files(): | |
working_dir = os.getcwd() | |
print "Current Working Directory: " + working_dir | |
secret_msg_dir = working_dir + "/secret" | |
# list file_list in dir | |
file_list = os.listdir(secret_msg_dir) | |
# rename each file |
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 webbrowser | |
import time | |
times = 5 | |
print "Start working on: " + time.ctime() | |
while times > 0: | |
print "It's time for work!" | |
time.sleep(25 * 60) | |
print "Now, It's time to take a break!" | |
webbrowser.open("https://www.youtube.com/watch?v=1g5wM-YSNHo") |
NewerOlder