Since set.add 只接受单个元素,而不是一个可迭代的元素,你可以循环使用 map 并单独添加每个元素 l2 = set() for i in range(n): for element in map(int, ...
確定! 回上一頁