随笔分类 -  python

摘要:random 模块学习 纯数字4位验证码: 数字+大写字母 4位验证码 数字+小写字母 4位验证码 数字+大写+小写 4位验证码: 用 if进行判断。可以多种验证码。 阅读全文
posted @ 2018-12-05 16:37 G0mini 阅读(185) 评论(0) 推荐(0)
摘要:1 count=0 2 username="pangya" 3 password="123456" 4 f=open('read.py','r') 5 file=f.read() 6 f.close() 7 username=raw_input("input:") 8 for i in range(1): 9 if file==username: 10 ... 阅读全文
posted @ 2018-05-14 11:34 G0mini 阅读(148) 评论(0) 推荐(0)
摘要:MD5 import hashlib a = raw_input('输入加密的字符:') #python3为input b = hashlib.md5() b.update(a.encode(encoding='utf-8')) print ('MD5加密前:'+ a) print ('MD5加密后 阅读全文
posted @ 2018-04-12 18:28 G0mini 阅读(28985) 评论(0) 推荐(1)
摘要:#!/usr/bin/env python#!-*-coding:utf-8-*-import base64file=open("base3264.txt",'r')code=file.read()try: while Ture: if (code.isupper()); code = base64 阅读全文
posted @ 2018-04-11 15:53 G0mini 阅读(1784) 评论(0) 推荐(0)