randomly generates eight digits with 26 English letter case and 0-9 to form
using module string and random.
“
” unpack string, list, dictionary front to add two “**”
import string
import random
sour = list(string.ascii_letters+string.digits)
print(*random.choices(sour, k=8))
div>
Read More:
- Greek letters in latex
- MySQL — initialize failed to generate temporary password in error log after initialization
- Random number random reports an error. Illegalargumentexception: bound must be positive
- Python random selects elements randomly from a collection
- Change the path in the user directory in Chinese Ubuntu to English
- Learn English together | three ways to realize digital factorial with JavaScript
- Python switch / case statement implementation method
- Implementation of Python switch / case statements
- Chinese garbled fonts in win10 English system
- numpy.random.rand()
- Tensorflow image random_ There seems to be something wrong with the shift function
- Count the frequency of words in English documents
- Method of ignoring case in Python string comparison
- After Android studio creates a new bottomnavigationactivity, there is a blank solution in the upper area of fragment
- MySQL password setting error message: error 1054 (42s22): unknown column ‘password’ in ‘field list’
- How to generate UML Diagrams from Java code in Eclipse
- How to generate and view SSH keys in Ubuntu 16.04
- Dpkg: error processing package XXX (- – configure) solution (red warning in the upper right corner of Ubuntu)
- Latex letters with symbols, wavy lines, horizontal lines, horn, etc
- Error = 2, no such file or director is prompted in the lower left corner of the MAC pycharm running file