【python】隨機數相關

http://www.cnblogs.com/yd1227/archive/2011/03/18/1988015.htmlhtml

該博文寫的很詳細,備忘。dom

須要注意的是,寫測試腳本的時候,不要將腳本命名成跟module同樣的名字,如random.py,測試

不然會出現報錯:AttributeError: 'module' object has no attribute 'randint'htm

相關文章
相關標籤/搜索