随笔分类 - python
摘要:random 模块学习 纯数字4位验证码: 数字+大写字母 4位验证码 数字+小写字母 4位验证码 数字+大写+小写 4位验证码: 用 if进行判断。可以多种验证码。
阅读全文
摘要: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 ...
阅读全文
摘要:MD5 import hashlib a = raw_input('输入加密的字符:') #python3为input b = hashlib.md5() b.update(a.encode(encoding='utf-8')) print ('MD5加密前:'+ a) print ('MD5加密后
阅读全文
摘要:#!/usr/bin/env python#!-*-coding:utf-8-*-import base64file=open("base3264.txt",'r')code=file.read()try: while Ture: if (code.isupper()); code = base64
阅读全文

浙公网安备 33010602011771号