案例
List all combinations of read, write
List all combinations of read, write. The input is a small public learning fixture; it contains no private production data.
输入
read,writeExpected answer
read
write
read,write
- Item 分隔符
,
List all combinations of json, csv
List all combinations of json, csv. The input is a small public learning fixture; it contains no private production data.
输入
json,csvExpected answer
csv
json
json,csv
- Item 分隔符
,
List all combinations of red, blue, green
List all combinations of red, blue, green. The input is a small public learning fixture; it contains no private production data.
输入
red,blue,greenExpected answer
red
blue
green
red,blue
red,green
blue,green
red,blue,green
- Item 分隔符
,
List all combinations of draft, live
List all combinations of draft, live. The input is a small public learning fixture; it contains no private production data.
输入
draft,liveExpected answer
live
draft
draft,live
- Item 分隔符
,
List all combinations of yes, no, maybe
List all combinations of yes, no, maybe. The input is a small public learning fixture; it contains no private production data.
输入
yes,no,maybeExpected answer
no
yes
maybe
yes,no
no,maybe
yes,maybe
yes,no,maybe
- Item 分隔符
,
Power set
输入
1 2 4Expected answer
4
2
1
2 4
1 4
1 2
1 2 4
- Item 分隔符
参数
| 参数 | 默认值 | 输入与选项 |
|---|---|---|
| Item 分隔符 | "," | 支持 \n、\r 和 \t 等转义序列 |