# coding=utf-8
#!/usr/bin/python 

import os
import time

#fname = "test99.txt"
f = open('./Python_google/test99.txt', 'a')
for i in range(10):
	# 取得 struct_time 格式的時間
	t = time.localtime()
	# 依指定格式輸出
	result = time.strftime("%m/%d/%Y, %H:%M:%S", t)
	f.write("This is line %d  " % (i+1))
	f.write("This is time %s\r\n" % result)
	print("This is line %d\r\n" % (i+1))
	print(result)
f.close()


c475e222489d520a03842b2ce84da63d12a69a5c
<mask token>

<mask token>
for i in range(10):
    t = time.localtime()
    result = time.strftime('%m/%d/%Y, %H:%M:%S', t)
    f.write('This is line %d  ' % (i + 1))
    f.write('This is time %s\r\n' % result)
    print('This is line %d\r\n' % (i + 1))
    print(result)
f.close()

<mask token>
f = open('./Python_google/test99.txt', 'a')
for i in range(10):
    t = time.localtime()
    result = time.strftime('%m/%d/%Y, %H:%M:%S', t)
    f.write('This is line %d  ' % (i + 1))
    f.write('This is time %s\r\n' % result)
    print('This is line %d\r\n' % (i + 1))
    print(result)
f.close()

import os
import time
f = open('./Python_google/test99.txt', 'a')
for i in range(10):
    t = time.localtime()
    result = time.strftime('%m/%d/%Y, %H:%M:%S', t)
    f.write('This is line %d  ' % (i + 1))
    f.write('This is time %s\r\n' % result)
    print('This is line %d\r\n' % (i + 1))
    print(result)
f.close()

# coding=utf-8
#!/usr/bin/python 

import os
import time

#fname = "test99.txt"
f = open('./Python_google/test99.txt', 'a')
for i in range(10):
	# 取得 struct_time 格式的時間
	t = time.localtime()
	# 依指定格式輸出
	result = time.strftime("%m/%d/%Y, %H:%M:%S", t)
	f.write("This is line %d  " % (i+1))
	f.write("This is time %s\r\n" % result)
	print("This is line %d\r\n" % (i+1))
	print(result)
f.close()

