摘要: 使用场景:随机 短信验证码 1 import random 2 import string 3 4 # 指定随机数长度 5 r_num = 4 6 7 # 生成数字 + 字母(字符串序列) 8 token = string.ascii_letters + string.digits 9 ''' 10 阅读全文
posted @ 2021-05-27 14:27 wellons 阅读(92) 评论(0) 推荐(0) 编辑