Python生成随机字符串 By admin | 2022-01-16 阅读次数: 生成8位随机字符串str = ''.join(random.sample(string.ascii_letters + string.digits, 8))