Python生成随机字符串

By | 2022-01-16

生成8位随机字符串

str = ''.join(random.sample(string.ascii_letters + string.digits, 8))