fr = open('letter.txt',mode='r',encoding='utf-8') plaincode = fr.read() print('明文:' + plaincode) print('密文:',end='') for c in plaincode: print(chr(ord... ...
分类:
其他好文 时间:
2018-05-30 22:36:26
阅读次数:
206
题目如下: Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates wher ...
分类:
其他好文 时间:
2018-05-29 12:01:20
阅读次数:
168
CSS介绍 CSS(Cascading Style Sheet,层叠样式表)定义如何显示HTML元素。 当浏览器读到一个样式表,它就会按照这个样式表来对文档进行格式化(渲染)。 CSS语法 CSS实例 每个css样式由两个组成部分:选择器和声明。声明又包括属性和属性值。每个声明之后用分号结束。 CS ...
分类:
Web程序 时间:
2018-05-28 19:49:42
阅读次数:
207
17. Letter Combinations of a Phone Number Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number ...
分类:
其他好文 时间:
2018-05-27 23:39:58
阅读次数:
206
这周几天遇到了好几个关于web移动端兼容性的问题。并花了很长时间去研究如何处理这几种兼容问题。 这次我们来说说关于移动端软键盘的js处理吧。 一般情况下,前端是无法监控软键盘到底是弹出来还是关闭的。能使用的一般是输入框获取焦点事件(focus)与输入框失去焦点事件(blur)。 ios设备下,点击输 ...
分类:
移动开发 时间:
2018-05-26 17:11:49
阅读次数:
347
1、 #include <iostream> int main(int argc, char* argv[]){ char firstName[50] = {0}; char lastName[50] = {0}; char grade; int age; std::cout << "What is ...
分类:
编程语言 时间:
2018-05-26 00:41:33
阅读次数:
208
一、常用css属性 (1) *block(区块) 行高 line-height:数值 | inherit | normal;字间距 letter-spacing: 数值 | inherit | normal;词间距 word-spacing: 数值 | inherit | normal;空格 whi ...
分类:
Web程序 时间:
2018-05-26 00:01:59
阅读次数:
253
#写一个自动生成密码文件的程序 # 1 输入几,文件里面就产生多少条密码 input #2 密码必须包含 大写字母 小写字母 数字 特殊字符 #3 密码不能重复 #4 密码都是随机产生的 #5 密码长度6-11位 import string,random pwd_len = input('请输入你要... ...
分类:
其他好文 时间:
2018-05-23 11:00:51
阅读次数:
152
In mathematics, a subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the rema ...
分类:
其他好文 时间:
2018-05-19 20:41:12
阅读次数:
167
CA和证书 1、KPI :公共秘钥体系 签证机构:CA 注册机构:RA 证书吊销列表:CRL 证书存取库 509:定义了证书的结构以及认证协议标准 版本号序列号签名算法 主体公钥 颁发者 CRL分发点有效期限 扩展信息主体名称 发行者签名证书类型: 证书授权机构的证书 服务器 用户证书获取证书两种方 ...
分类:
系统相关 时间:
2018-05-18 23:33:04
阅读次数:
397