集合差集

按集合关系筛選元素,分隔符决定如何读取两个集合及輸出結果。

輸入: 文本結果: 文本

文本輸入

工具選項

範例

Set Difference

輸入

1 2 3 4 5

3 4 5 6 7

Expected answer

1 2
样本分隔符
Item 分隔符
duplicates in both sets

輸入

1 1 2 2 3

2 2 3 3

Expected answer

JSON
1
样本分隔符
Item 分隔符
duplicates in first set are removed

輸入

red,red,blue

blue

Expected answer

red
样本分隔符
Item 分隔符
,
item delimiter

輸入

1;2;3;4;5

3;4;5;6;7

Expected answer

1;2
样本分隔符
Item 分隔符
;
sample delimiter

輸入

1;2;3;4;5===3;4;5;6;7

Expected answer

1;2
样本分隔符
===
Item 分隔符
;
wrong sample count

輸入

1 2 3 4 5_3_4 5 6 7

Expected rejection

Message contains
Incorrect number of sets, perhaps you need to modify the sample delimiter or add more samples?
样本分隔符
Item 分隔符
_

参數

参數默認值輸入與選項
样本分隔符"\\n\\n"支持 \n、\r 和 \t 等跳脫序列
Item 分隔符","支持 \n、\r 和 \t 等跳脫序列

相关工具

算術 / 邏輯

操作参考

查看原始技术文檔 (English)