1
purebluesong 2016 年 11 月 2 日
shuffle
|
2
linuxplus 2016 年 11 月 2 日
直接命令行操作如何?
$ 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 月 2 日
random.shuffle(words)
|