2011-12-27 5 views

答えて

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

'00554'ような乱数の固定長の文字列表現を作成します。