-->
当前位置:首页 > 题库

PROGRAMMING:JMU Python randomly generated password

Luz5年前 (2021-05-10)题库421
Create a new character list. The contents in the list include lowercase letters, uppercase letters and numbers from front to back. Such as' ['a ',...,'z','a ',...,'z','0 ',...'9']`
**Suggestion: * * use the code to generate the character list.
Input the seed of random number 'x' (integer), the number of randomly generated passwords n, and the length of each password M.
Each password contains M characters * * randomly selected * * from the above character list.
**Note: do not use the 'sample' function in this question, otherwise the answer is wrong.
###Input format:
Seed x (Note: you need to convert x to integer type and then set it)
Number of passwords n
Length of each password M
###Output format:
N lines of password, m bits per line.
###Input example:
```in
one
ten
eight
```
###Output example:
```out
iK2ZWeqh
FWCEPyYn
gFb51yBM
WXaSCrUZ
oL8g5ubb
bPIa84yR
nBUbHoWC
8FJowoRo
WD8s7bA1
6J7PglOU
```







answer:If there is no answer, please comment