# -*- encoding:utf-8 -*-
"""
@author: dedong.xu
@date: 2018/01/26
@description: 检测参数的类
"""
class CheckParams(object):
""" 检测参数的类 """
@staticmethod
def check_params(standard_list, dest_list):
"""
:paramstandard_list: 标准列表, ``list``
:paramdest_list: 待检测的参数列表, ``list``
:return: 如果dest_list是standard_list的子列表就返回``True``, 否则返回``False``
"""
for res in standard_list:
if res not in dest_list:
return False
return True
网友评论