# 忽略警告
import warnings
warnings.simplefilter("ignore", ResourceWarning)
# 自定义异常类
class FError(Exception):
def __init__(self, name):
self.error_name = name
# 忽略警告
import warnings
warnings.simplefilter("ignore", ResourceWarning)
# 自定义异常类
class FError(Exception):
def __init__(self, name):
self.error_name = name