标签:pre style 字母 import div col for rand int
import random # 生成4位随机小写字母 str_s = "" for i in range(4): num_1 = random.randrange(97,123) zimu = chr(num_1) str_s = str_s + zimu # print(str_s) # 生成8位随机数字 str_n = "" for i in range(8): num_2 = random.randrange(0,10) num_3 = str(num_2) str_n = str_n + num_3 # print(str_n) print(str_s + str_n)
标签:pre style 字母 import div col for rand int
原文地址:https://www.cnblogs.com/chenxiaokaikai/p/9746486.html