随机数生成
shell:
cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 27 | head -n 1
python:
python -c "import random,string; print(''.join(random.sample(string.ascii_letters + string.digits, 27)))"
posted on 2020-05-06 12:09 Copernicus 阅读(49) 评论(0) 收藏 举报