摘要:
r = redis.Redis(host='58.221.49.25',password='helloworld')n = r.lrange('dangd2:item',start=0,end=1) 阅读全文
摘要:
import loggingimport timelogging.basicConfig(filename='demo_error.log', filemode="a+", level=logging.DEBUG)try: a = 1/0 print(a)except: logging.info(time.strftime('%Y-%m-%d %H:%M:%S', time... 阅读全文