Skip to content

Instantly share code, notes, and snippets.

@yanlusu
yanlusu / Install NVIDIA Driver and CUDA.md
Created February 7, 2019 06:14 — forked from wangruohui/Install NVIDIA Driver and CUDA.md
Install NVIDIA Driver and CUDA on Ubuntu / CentOS / Fedora Linux OS
@yanlusu
yanlusu / log.py
Created May 28, 2018 11:35 — forked from hxer/log.py
python logging 将日志同时输出文件和屏幕
#将日志同时输出到文件和屏幕
import logging
logging.basicConfig(level=logging.DEBUG,
format='%(asctime)s %(filename)s[line:%(lineno)d] %(levelname)s %(message)s',
datefmt='%a, %d %b %Y %H:%M:%S',
filename='myapp.log',
filemode='w')