浏览器同源策略 host (域名或IP地址, 如果是IP地址则可以看做是一个根域名), 子域名, 端口, 协议 (http, https) 比如,mail.example.com和calendar.example.com是example.com的两个子域,子域名也被包含在同源策略中. 在浏览器中 < ...
分类:
其他好文 时间:
2020-02-27 19:06:29
阅读次数:
66
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.Your algorithm should run in O(n) complexity.Example... ...
分类:
其他好文 时间:
2020-02-27 11:41:45
阅读次数:
73
var vm = new Vue({ el: '#example', data: { message: 'Hello' }, computed: { // 计算属性的 getter reversedMessage: function () { // `this` 指向 vm 实例 return th ...
分类:
移动开发 时间:
2020-02-27 11:39:54
阅读次数:
140
1 """ 2 Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). 3 Example: 4 Inpu ...
PolandBall lives in a forest with his family. There are some trees in the forest. Trees are undirected acyclic graphs with k vertices and k?-?1 edges, ...
分类:
数据库 时间:
2020-02-27 00:38:52
阅读次数:
97
1. 定义 当你想让一个以上的对象有机会能够处理某个请求的时候,就使用责任链模式。 2. 类图 3. Example 作为员工需要请假或者加薪,需要经历:技术leader——部门经历——CTO的流程。 输出结果: 由此可见,请求被处理的时候,你不知道是谁在进行处理。请求有可能会被处理,也有可能不会被 ...
分类:
其他好文 时间:
2020-02-26 22:36:08
阅读次数:
48
连续张量理解和contiguous()方法使用,view和reshape的区别 待办内存共享:下边的x内存布局是从0开始的,y内存布局,不是从0开始的张量 For example: when you call transpose(), PyTorch doesn't generate new ten... ...
分类:
其他好文 时间:
2020-02-26 19:12:02
阅读次数:
399
这几天刚接触example,很多内容都是破碎的,写一篇文章加深理解。 一、什么是example类 mybatis-generator会为每个字段产生Criterion,为底层的mapper.xml创建动态sql。如果表的字段比较多,产生的example类会十分庞大。理论上通过example类可以构造 ...
分类:
其他好文 时间:
2020-02-26 17:10:43
阅读次数:
103
1 """ 2 Given an array of strings, group anagrams together. 3 Example: 4 Input: ["eat", "tea", "tan", "ate", "nat", "bat"], 5 Output: 6 [ 7 ["ate","ea ...
分类:
其他好文 时间:
2020-02-25 23:04:37
阅读次数:
68
scrapy快速上手之crawl模板 "前面" 提到过,我们使用了basic作为模板生成了爬虫 现在介绍另外一种模板:crawl 创建项目 首先在命令行界面执行: 后,即可得到提示 You can start your first spider with: cd Spider scrapy gens ...
分类:
编程语言 时间:
2020-02-25 21:50:55
阅读次数:
126