Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
長さが異なるリストが複数ある場合、各リストで同じアイテムをすばやく見つける方法は何ですか?
a = [[1, 2, 3], [2, 3], [3, 4, 5, 6, 7]] s = set.intersection(*map(set, a))
sは単一の要素を持つセット3です。
s
3
I have searched for a few examples and not found one that is similar to what I have and what I want to achieve.
I have 2 lists
class object1 { string obj1_name; int obj1_qty; } List<ob