字母组合如何用python实现_python中添加指定位数的字母数字组合字符串
importrandomclasstest():deffunction(self):list= [chr(i) for i in range(65,91)] + [chr(i) for i in range(97,123)] + [ str(i) for i in range(10)] + ['.','-','~','_'] #大写字母+小写字母+数字 +特殊字符.-_~#list显示结果:['A...