摘要: import configparser config = configparser.ConfigParser() file = 'config.ini' config.read(file) config.add_section('login') config.set('login','username','1111') config.set('login','password','2222') w 阅读全文
posted @ 2019-11-14 19:41 anobscureretreat 阅读(1193) 评论(0) 推荐(0)
摘要: //身份证号码为15位或者18位,15位时全为数字,18位前17位为数字,最后一位是校验位,可能为数字或字母x function isCardNo(card) { var reg = /(^\d{15}$)|(^\d{14}(\d|X|x)$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/; if(reg.test(card) === false) { ... 阅读全文
posted @ 2019-11-14 11:51 anobscureretreat 阅读(253) 评论(0) 推荐(0)