其他分享
首页 > 其他分享> > 随便画的线

随便画的线

作者:互联网

import random
numArray=[]
numStr=[]
unite=['','十','百','千','万','十','百','千','亿','十']
jici=1
for item in range(0,10):
numArray.append(str(random.randint(100000,9999999999)))
for item in numArray:
for item2 in item:
numStr=numStr+item2+unite[len(item)-jici]
jici=jici+1
jici=0
print(numStr)
numStr=""

标签:numStr,numArray,item2,unite,随便,item,jici
来源: https://blog.51cto.com/14887662/2529197