본문 바로가기

개발

warnings — 경고 제어

import sys

if not sys.warnoptions:
    import warnings
    warnings.simplefilter("ignore")

 

https://docs.python.org/ko/3/library/warnings.html