範例
Find items unique to red,green versus green,blue
Find items unique to red,green versus green,blue. The input is a small public learning fixture; it contains no private production data.
輸入
red,green
green,blueExpected answer
red,blue- 样本分隔符
\n\n- Item 分隔符
,
Find items unique to json,csv,xml versus csv,yaml
Find items unique to json,csv,xml versus csv,yaml. The input is a small public learning fixture; it contains no private production data.
輸入
json,csv,xml
csv,yamlExpected answer
json,xml,yaml- 样本分隔符
\n\n- Item 分隔符
,
Find items unique to api,web,cli versus api,cli
Find items unique to api,web,cli versus api,cli. The input is a small public learning fixture; it contains no private production data.
輸入
api,web,cli
api,cliExpected answer
web- 样本分隔符
\n\n- Item 分隔符
,
Find items unique to 1,2,3 versus 3,4,5
Find items unique to 1,2,3 versus 3,4,5. The input is a small public learning fixture; it contains no private production data.
輸入
1,2,3
3,4,5Expected answer
1,2,4,5- 样本分隔符
\n\n- Item 分隔符
,
Find items unique to draft,review versus publish
Find items unique to draft,review versus publish. The input is a small public learning fixture; it contains no private production data.
輸入
draft,review
publishExpected answer
draft,review,publish- 样本分隔符
\n\n- Item 分隔符
,
Symmetric Difference
輸入
1 2 3 4 5
3 4 5 6 7Expected answer
1 2 6 7- 样本分隔符
- Item 分隔符
item delimiter
輸入
a_b_c_d_e
c_d_e_f_gExpected answer
a_b_f_g- 样本分隔符
- Item 分隔符
_
sample delimiter
輸入
a_b_c_d_eAAAAAc_d_e_f_gExpected answer
a_b_f_g- 样本分隔符
AAAAA- Item 分隔符
_
wrong sample count
輸入
1 2
3 4 5
3 4 5 6 7Expected rejection
Message containsIncorrect 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 等跳脫序列 |