摘要:
import time now = time.localtime(time.time()) print time.asctime(now) print time.strftime("%y %m %d %H:%M", now) print "*****a,b,c,d********" print time.strftime("%a", now) print time.... 阅读全文
摘要:
import sys
import string class Redirect: def _ _init_ _(self, stdout): self.stdout = stdout def write(self, s): self.stdout.write(string.lower(s)) # redirect standard outpu... 阅读全文