5544992 发表于 2018-8-7 12:19:36

python中tokens生成器

import string  import random
  str_from = string.ascii_letters + string.digits
  count = 10
  tokens = []
  for i in range(count):
  s = random.choice(str_from)
  print(s)
  tokens.append(s)
  "".join(tokens)
页: [1]
查看完整版本: python中tokens生成器