1
purebluesong 2016-11-02 17:49:32 +08:00
shuffle
|
2
linuxplus 2016-11-02 17:55:27 +08:00
直接命令行操作如何?
$ split -l 50 abc.txt 或者先简单乱序,再 split ? while read i; do echo "$i $RANDOM"; done< abc.txt | sort -k2n | cut -d" " -f1 |
3
jimzhong 2016-11-02 18:05:32 +08:00
random.shuffle(words)
|