2018年11月19日
摘要: ## md5算法简介 1. **简介** MD5消息摘要算法(MD5 Message-Digest Algorithm),一种被广泛使用的密码散列函数,可以产生出一个128位(16字节)的散列值(hash value),用于确保信息传输完整一致。MD5由美国密码学家罗纳德·李维斯特(Ronald L 阅读全文
posted @ 2018-11-19 11:31 若无未来 阅读(4387) 评论(0) 推荐(0) 编辑
摘要: 一、 正则表达式 元字符 \d digit,数字(等效:[0-9]) \d+ 匹配连续的数字 \D 非数字 \D{3} 匹配连续的非数字 \w word,单词([A-Z0-9a-z_]) \w{6} 6个单词字符 \W 非单词(单词是指标识符) \W{3} 3个非单词字符 \s space,空白字符 阅读全文
posted @ 2018-11-19 11:25 若无未来 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 一、subprocess模块 call():执行命令,返回程序返回码(int) import subprocess print(subprocess.call("mspaint")) check_output():执行命令,返回输出(bytes) import subprocess import c 阅读全文
posted @ 2018-11-19 11:18 若无未来 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: 标准库和第三方库第一手资料: 在线: 官方文档(https://docs.python.org/) 离线:交互式解释器(dir()、help()函数),IPython(tab键提示、?、??) 一、 日期和时间(https://docs.python.org/3/library/datetime.h 阅读全文
posted @ 2018-11-19 10:45 若无未来 阅读(694) 评论(0) 推荐(0) 编辑
摘要: 一、 模块 使用内置函数vars()可以查看当前环境下有哪些对象(变量、函数、类) from 模块 import *: 不会导入以下划线开头的对象 只会导入__all__中定义了的对象(__all__中的每个元素需要是str类型) from pprint import PrettyPrinter p 阅读全文
posted @ 2018-11-19 10:30 若无未来 阅读(136) 评论(0) 推荐(0) 编辑