发出警告的最简单方法是使用消息作为参数调用 warn() 。 warnings_warn.py. import warnings print('Before the warning') warnings.
確定! 回上一頁