随机码
#隨機驗證碼
import random
def v_code():code=''for i in range(5):num = random.randint(0,9)alf =chr(random.randint(65,90))add = random.choice([num,alf])code+=str(add)return code
print(v_code())
?
轉載于:https://www.cnblogs.com/huangjinshan/p/6257460.html
總結
- 上一篇: Yii2.X 多语言-类图
- 下一篇: 关于IPv6