# -*- coding: utf-8 -*-
import random
seed = "01"
sa = []
for i in range(20):
sa.append(random.choice(seed))
salt = ''.join(sa)
print salt
生成20位字符串
python 随机生成 01 字符串
最新推荐文章于 2024-06-06 18:09:41 发布
# -*- coding: utf-8 -*-
import random
seed = "01"
sa = []
for i in range(20):
sa.append(random.choice(seed))
salt = ''.join(sa)
print salt
生成20位字符串