#第一种from random import choice
a ='1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'
result =''for i inrange(9):
data = choice(a)
result += data
print
生成随机密码:1、写个能生成9位随机密码的程序#第一种from random import choicea = '1234567890qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM'result = ''for i in range(9): data = choice(a) result += dataprint(result)#第二种from random import choicea = '1234567890