文本行随机排序

Other

Randomly shuffles the order of lines in a given text or file using a Python standard library script.

Install

openclaw skills install cn-shuffle-lines

cn-shuffle-lines

文本行随机排序工具。将文本行随机打乱顺序。

使用方法

python3 scripts/shuffle.py --text "第一行\n第二行\n第三行"
python3 scripts/shuffle.py --file input.txt

纯Python标准库。