リストから別のリストの値を含むアイテムを除外する方法
original_list = [1, 2, 3, 4, 5] exclude_list = [3, 4] new_list = [item for item in original_list if item not in exclude_list] print(new_list)>>More
original_list = [1, 2, 3, 4, 5] exclude_list = [3, 4] new_list = [item for item in original_list if item not in exclude_list] print(new_list)>>More