文章详情
时间:2007-12-26 来源:linuxGentoo
#!/usr/bin/env python __author__ = "lynn lin" from random import random def random_shuffle(A): length = len(A) for i in range(0,length): randomi = int(random()*length) print randomi A[i],A[randomi] = A[randomi],A[i] return A if __name__ == '__main__': A = [1,2,3,4,5] B = random_shuffle(A) print B
辰域智控app
网医联盟app
汇丰汇选App
1970-01-01