可以用来命名文件的时间戳
import os, sys, time, datetime
currentTime = datetime.datetime.now()
arg1 = currentTime.strftime("%H-%M")
arg2 = currentTime.strftime("%Y-%m-%d %H:%M")
starttime = time.clock()
print arg1,arg2,starttime
file = "D:/workplace/report_%s.txt" % arg1
report = open(file, 'w')