Python:sample函數 如何使用?

注:本文爲轉載文章,若有侵權請告知,將予以刪除html 轉自:http://www.cnblogs.com/volcao/p/8727688.htmldom   sample(序列a,n)htm 功能:從序列a中隨機抽取n個元素,並將n個元素生以list形式返回。blog 例:get from random import randint, sampleclass date = [randint(1
相關文章
相關標籤/搜索