摘要:
数组: 声明方法: 1.datatype arr[]={0}; //个数由{}内元素个数决定 2.datatype arr[N]; //N必须大于0 3.datatype arr[N]={1,2,3}; //{}内个数不能超过N;若个数小于N,则未初始化的元素默认为0 4.datatype arr[ 阅读全文
posted @ 2020-05-10 15:38
Ruanzy
阅读(251)
评论(0)
推荐(0)
摘要:
生成指定长度验证码 方法一 import random ALL_CHARS = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' def generate(length=6): code=' ' for _ in ran 阅读全文
posted @ 2020-05-10 15:27
Ruanzy
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号