📜  导入python代码示例时关闭警告

📅  最后修改于: 2022-03-11 14:46:57.576000             🧑  作者: Mango

代码示例1
import warnings

with warnings.catch_warnings():
    warnings.filterwarnings("ignore",category=DeprecationWarning)
    import md5, sha

yourcode()