2011-12-27 137 views

回答

9
import random 
'{0:05}'.format(random.randint(1, 100000)) 

創建像'00554'一個隨機數的固定長度的字符串表示。

相關問題