时间打点脚本

# -*- coding: utf-8 -*-
import time
import platform
# import pytesseract
# from PIL import Image

def generate_stamp(prefix = '', suffix = ''):
t = time.localtime(time.time())
stamp = time.strftime('%Y%m%d%H%M%S', t)
return prefix + stamp + suffix

if __name__ == '__main__':
print generate_stamp('Stamp', '!!!')

posted @ 2019-12-03 17:41  燕十三丶  阅读(185)  评论(0编辑  收藏  举报
AmazingCounters.com