您可以尝试以下方法:
samples_antibiotics_with_duplicates = {'S00541-09': ['Streptomycin', 'Sulfamethoxazole', 'Trimethoprim', 'Spectinomycin', 'Streptomycin', 'Streptomycin', 'Trimethoprim']}new_dict = {a:list(set(b)) for a, b in samples_antibiotics_with_duplicatates.items()}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)