- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
def password_generator(count = 8):
import random
i = 0
password = ''
symbols = ['q','w','e','r','t','y','u','i','o','p','s','a','d','f','g','h','j','k','l','z','x','c','v','b','n','m','1','2','3','4','5','6','7','8','9','0']
while i<count:
tempsymbol = ''
tempsymbol += random.choice(symbols)
temp = random.randint(0,1)
if temp == 1:
password += tempsymbol.upper()
else:
password += tempsymbol
i += 1
return password
guest 30.03.2012 18:18 # +6
sickuenser 31.03.2012 02:04 # 0
gegMOPO4 01.04.2012 20:52 # +2
random.sample даст неповторяющиеся символы.
guest 14.08.2012 21:17 # 0
gegMOPO4 16.08.2012 00:07 # 0
anonimb84a2f6fd141 01.04.2013 22:43 # +1
guest8 09.04.2019 12:58 # −999