Created
November 29, 2016 05:23
-
-
Save Gotoryoo/57972d3a83fa46ad2f7392febeefe8ab to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Oct 04 20:53:36 2016 | |
@author: ryousuke | |
""" | |
import datetime | |
from time import sleep | |
import os | |
import sys | |
''' | |
filepath = "C:\\Users\\ryousuke\\Desktop\\study_log\\code\\" | |
endo2 = "endo.txt" | |
endo = open(filepath + endo2,"w") | |
endo.write("ennddooooo") | |
endo.close() | |
endo3 = "endoooooo.txt" | |
os.rename(filepath + endo2,filepath + endo3) | |
print 'OOOOKKKKKK' | |
today = datetime.datetime.now() | |
print "{0}".format(today) | |
a = 0 | |
sec = 0 | |
while sec < 10: | |
today2 = datetime.datetime.now() | |
delta = today2 - today | |
sec = float(delta.total_seconds()) | |
if sec >= 10: | |
a = 10 | |
print sec | |
print a | |
print "まだ{0}だよーーーーーー".format(a) | |
''' | |
while True: | |
sleep(5) | |
today2 = datetime.datetime.now() | |
print today2 | |
sys.stdout.flush() | |
#sleep(10) | |
print "finish" | |
#print "{0}".format(today2) | |
#print delta.total_seconds() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment