一 HTTPS概述 1.1 HTTPS介绍 超文本传输安全协议HTTPS(Hypertext Transfer Protocol Secure)是超文本传输协议和SSL/TLS的组合,用以提供加密通讯及对网络服务器身份的鉴定。 HTTPS也可以理解为HTTP over SSL,即HTTP连接建立在S ...
分类:
Web程序 时间:
2020-07-21 13:59:31
阅读次数:
87
具体可参考:https://note.youdao.com/ynoteshare1/index.html?id=db637b43f0ab16cf6db9b9b92d562ca8&type=notebook#/7A55B7E7787A49D0B2E2265D437F3C19;这里写的很具体了; 一、基 ...
分类:
其他好文 时间:
2020-07-21 10:02:26
阅读次数:
83
from typing import List# 这道题很容易能够想到,只需要遍历两边列表就可以了# 两层循环class Solution: def twoSum(self, numbers: List[int], target: int) -> List[int]: # 第一次遍历列表 for i ...
分类:
编程语言 时间:
2020-07-21 01:14:53
阅读次数:
97
# Definition for singly-linked list.class ListNode: def __init__(self, x): self.val = x self.next = Nonea = ListNode(1)b = ListNode(2)a.next = b# 有关链表 ...
分类:
其他好文 时间:
2020-07-21 00:58:45
阅读次数:
67
Count Complete Tree Nodes Given a complete binary tree, count the number of nodes. Note: Definition of a complete binary tree from Wikipedia: In a com ...
分类:
其他好文 时间:
2020-07-20 15:46:54
阅读次数:
80
1 自定制频率 # 自定制频率类,需要写两个方法 -# 判断是否限次:没有限次可以请求True,限次了不可以请求False def allow_request(self, request, view): -# 限次后调用,显示还需等待多长时间才能再访问,返回等待的时间seconds def wait ...
分类:
其他好文 时间:
2020-07-20 15:39:52
阅读次数:
94
CocosCreator使用的是box2d.js物理引擎,碰撞平面法线方向必须取反 private onBeginContact(contact:cc.PhysicsContact,selfCollider:cc.PhysicsCollider,otherCollider:cc.PhysicsCol ...
分类:
其他好文 时间:
2020-07-20 15:29:08
阅读次数:
115
方法很简答,三行代码搞定: UIBarButtonItem *backBtn = [[UIBarButtonItem alloc] init]; backBtn.title = @"返回"; self.navigationItem.backBarButtonItem = backBtn; // 注意 ...
分类:
移动开发 时间:
2020-07-20 13:21:26
阅读次数:
94
单例:用于使用同一份实例(对象) 单例模式的实现: 1、方案一: class Foo: def __init__(self, name, age): self.name = name self.age = age def show(self): print(self.name, self.age) ...
分类:
编程语言 时间:
2020-07-19 23:52:16
阅读次数:
75
本篇主要讲述: 1 磁盘挂载 2 磁盘管理 3 LVM逻辑卷的使用 4 交换分区swap(虚拟内存) 5 RAID 1、磁盘挂载操作 1.1 含义 将光盘,U盘,分区,网络存储等设备装到某个Linux目录。 各种命令工具通过访问Linux目录来操作这些设备。 访问光盘的内容 Windows: 光盘文 ...
分类:
系统相关 时间:
2020-07-19 17:45:26
阅读次数:
151