
python
文章平均质量分 72
heymysweetheart
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python 批量下载文件
主要功能:登陆一个需要权限的页面,对页面进行解析下载所有列表下的文件到本地目录。#!/usr/bin/python2.7 #encoding=utf-8 import urllib2 from bs4 import BeautifulSoup # create a password manager password_mgr = urllib2.HTTPPasswordMgrWithDefaul原创 2016-04-26 18:53:46 · 2190 阅读 · 0 评论 -
python passlib生成Hash密文并进行验证--Hash a password with passlib
encrypt() - generate new salt, return hash of password.verify() - verify password against existing hash. from passlib.hash import sha256_crypt password = sha256_crypt.encrypt("password") passw原创 2016-06-03 08:14:03 · 4435 阅读 · 1 评论