碰到 warning,如下
/home/tops/lib/python3.7/site-packages/psycopg2/init.py:144: UserWarning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead.
import warnings
warnings.filterwarnings('ignore', ".*psycopg2.*")
# warnings.filterwarnings('ignore', category=UserWarning)
# warnings.filterwarnings('ignore', message=".*psycopg2.*")