問題タブ [set-comprehension]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
50 問題
0
投票する
2
に答える
1449
参照
python - リスト内の複数のセットの結合
これは私のコードです。
返しますset([1, 2, 3, 4, 5])
。
そのような場合に集合内包表記を使用することは可能ですか? どうしたら短く書けるでしょうか?