简单、独特的列表收集程序,带*参数用于可通过的黑名单检查,可选列表用于自动对黑名单进行排序
gatherunique的Python项目详细描述
收集唯一的
简单、独特的列表收集程序,带有*参数用于可通过的黑名单检查,可选的列表用于 自动分类黑名单
安装
pip install gather_unique
用法
fromgatheruniqueimportGatherUniquegather=GatherUnique()head="Header to display"# Unique list from stdin, no headeruniq1=gather.run()# Unique list from stdin, with provided blacklist and headeruniq2=gather.run(['1','2','3','4','5'],header=head)# Unique list from list_in= against provided blacklistuniq3=gather.run(['1','2','3','4','5'],list_in=['6','6','1','2'])
请注意,默认情况下args被视为黑名单。使用“header=”和“list\u in=”进行区分