第 0021 题: 通常,登陆某个网站或者 APP,需要使用用户名和密码。密码是如何加密后存储起来的呢?请使用 Python 对密码加密。
阅读资料 用户密码的存储与 Python 示例
阅读资料 Hashing Strings with Python
阅读资料 Python’s safest method to store and retrieve passwords from a databas...
分类:
编程语言 时间:
2015-06-02 00:29:09
阅读次数:
213
TriangleGiven a triangle, find the minimum path sum from top to bottom. Each step you may move to adjacent numbers on the row below.For example, given...
分类:
编程语言 时间:
2015-06-02 00:14:30
阅读次数:
149
sql语句中的去重:例如:SELECT DISTINCT userrole.roleId,userrole.userId FROM userrole;sql 语句中and、or的连接and:表示并且;or:表示或者;between ...and ... 表示包含大于等于和小于等于;sql语句的运算符...
分类:
数据库 时间:
2015-06-02 00:11:30
阅读次数:
151
JavaScript was created at Netscape in the early days of the Web, and technically, "JavaScript" is a trademark licensed from Sun Microsystems(now Oracl...
分类:
编程语言 时间:
2015-06-02 00:00:18
阅读次数:
330
问题描述: ? ? ? ??使用Eclipse自带的Maven插件创建Web项目时报错: Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:RELEASE from any of the configured repositories...
分类:
系统相关 时间:
2015-06-01 22:53:39
阅读次数:
1038
CodeForces 91B ,Queue,单调栈,ACM,数据结构
There are n walruses standing in a queue in an airport. They are numbered starting from the queue's tail: the 1-st walrus stands at the end of the queue and the n-th walrus stands at the beginning of the queue. The i-th ...
分类:
其他好文 时间:
2015-06-01 22:52:50
阅读次数:
292
Given inorder and postorder traversal of a tree, construct the binary tree.
给定一个二叉树的后序和中序遍历,重建这棵二叉树。
此题和LeetCode105 根据前序和中序重建二叉树类似。
所谓后序遍历,即先访问根的左、右子树,然后再访问根节点。这样根节点在二叉树后序遍历的最后一个个元素。
所谓中序遍...
分类:
其他好文 时间:
2015-06-01 22:48:13
阅读次数:
126
【scons】 安装scons。在根目录下运行。 SConswill work with any 2.x version of Python from 2.7 on; 3.0 and later are not yet supported. If you need to install Py...
分类:
其他好文 时间:
2015-06-01 22:27:38
阅读次数:
160
查询数据库里面有多少条数据$m=new mysqli('localhost','root','','db');$m->set_charset('utf8');$stmt=$m->prepare('select count(*) from stu');$stmt->execute();$stmt->b...
分类:
其他好文 时间:
2015-06-01 22:19:51
阅读次数:
131
Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space for a...
分类:
其他好文 时间:
2015-06-01 22:04:23
阅读次数:
115