如同List Comprehension一樣,set 與dict 也有提供Comprehension. Set Comprehension. 例如. 想產生一個1~100的集合,排除2的倍數、3的倍數、5的倍數
確定! 回上一頁