import warnings # 忽略所有的 DeprecationWarning warnings.filterwarnings("ignore", category=DeprecationWarning)