函數示例

import time def logger(n): time_format = '%Y-%m-%d %X' time_current = time.strftime(time_format) with open('rizhi','a') as f: f.write('%s\tzhixingcaozuo%s\n'%(time_current,n)) def
相關文章
相關標籤/搜索