呃,今天来看看加密和解密,本文讨论base64和hashlib库:来看看HASHLIB,他是一种单向摘要出定长字符串的方法:撸代码:In[18]:importtime,hashlib
In[19]:t=int(time.time())
In[20]:t
Out[20]:1495597851
In[21]:md=hashlib.md5(‘test%s‘%t)
In[22]:md.hexdigest()
Out[2..
分类:
编程语言 时间:
2017-05-24 13:37:13
阅读次数:
143
<div class="col-md-12 col-xs-12"> <style type="text/css"> .syhhma{ padding-top: 15px; padding-bottom: 20px; padding-left: 3%; } .jmbag { color: #2c73b ...
分类:
其他好文 时间:
2017-05-24 12:42:58
阅读次数:
133
传送门:http://www.lydsy.com/JudgeOnline/problem.php?id=1111 【题解】 这题号注定单身。 转成四进制考虑 设f[i]表示从第i位往前的min,g[i]表示从第i位往前(第i位借1位)往前的min 那么转移随便做了。。 md还要取模,没看这个wa了3 ...
分类:
其他好文 时间:
2017-05-23 23:41:14
阅读次数:
262
基础知识: 一、人机交互方式: 图形化界面(GUI) 命令行方式(CLI) 二、常用的DOS命令: dir:列出当前目录下的所有文件以及文件夹; md:创建目录; rd:删除目录; cd:进入指定的目录; cd..:返回到上一级目录; cd/:退回到根目录; del:删除文件; exit:退出dos ...
分类:
编程语言 时间:
2017-05-23 22:36:55
阅读次数:
221
出现错误的主要原因是github中的README.md文件不在本地代码目录中 可以通过如下命令进行代码合并【注:pull=fetch+merge] git pull --rebase origin master 执行上面代码后可以看到本地代码库中多了README.md文件 此时再执行语句 git p ...
分类:
其他好文 时间:
2017-05-23 13:16:19
阅读次数:
187
https://github.com/wangyanwangyanwang/GitExtensionsDemo/blob/master/New%20Document.md 一开始是下载了Markdownpad2,然后写了简历,还挺方便的。 下载了GitExtensions,安装完打开之后出现了这个。 ...
分类:
其他好文 时间:
2017-05-23 00:30:30
阅读次数:
175
# coding=utf-8 import spacy nlp=spacy.load('en_core_web_md-1.2.1') docx=nlp(u'The ways to process documents are so varied and application- and languag... ...
分类:
编程语言 时间:
2017-05-22 22:12:14
阅读次数:
186
进程分析之CPU 本文转载自:https://github.com/ColZer/DigAndBuried/blob/master/system/cpu.md 在《进程分析之内存》文中,对系统/进程的内存使用情况进行分析了,本文将从cpu使用情况对进程进行分析;在这之前,先针对cpu比较相关几个概念 ...
分类:
系统相关 时间:
2017-05-22 19:27:56
阅读次数:
289
一、图片上传所涉及到的问题 1、HTML页面中引入这么一段代码 <div class="row"> <div class="col-md-12"> <form dropzone2 class="dropzone" enctype="multipart/form-data" method="post" ...
分类:
Web程序 时间:
2017-05-21 21:38:29
阅读次数:
968
<div class="form-group"> <div class="col-md-6 col-md-offset-3"> <input type="text" class="form-control" placeholder="用户名" name="userRegisterInfo.usern ...
分类:
其他好文 时间:
2017-05-21 14:44:24
阅读次数:
131