摘要: 1. 链表和链表节点的实现 listNode结构: 链接 list 结构: 阅读全文
posted @ 2022-05-18 23:16 C兔 阅读(20) 评论(0) 推荐(0)
摘要: 1. 简单动态字符串(SDS) 1.1 SDS 定义 1.2 SDS与C字符串的区别 1.2.1 获取字符串长度 C字符串中没有SDS结构中的len属性,那么在获取字符串的长度时,每次都需要遍历字符串,直到遇到结尾的 '\0'。但SDS中有len属性。 1.2.2 杜绝缓冲区溢出 SDS结构的字符串 阅读全文
posted @ 2022-04-28 13:47 C兔 阅读(33) 评论(0) 推荐(0)
摘要: 1. 使用 PyCharm(社区版) 新建项目 2: 使用 cmd 命令 或 PyCharm的命令行,进入项目目录:E:\self\upms 3: 安装 Django pip install django -i http://pypi.douban.com/simple --trusted-host 阅读全文
posted @ 2021-01-14 23:30 C兔 阅读(40) 评论(0) 推荐(0)
摘要: [root@localhost html]# /sbin/iptables -I INPUT -p tcp --dport 80 -j ACCEPT [root@localhost html]# /etc/init.d/iptables save [root@localhost html]# /et 阅读全文
posted @ 2020-04-04 11:48 C兔 阅读(451) 评论(0) 推荐(0)
摘要: 1. 初始化项目 npm init 生成 package.json 文件 { "name": "node.redis", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"E 阅读全文
posted @ 2020-01-31 13:10 C兔 阅读(5003) 评论(0) 推荐(0)
摘要: 1.CA证书的作用 确认公钥合法 2.发送的数据 报文+签名. 3.数字签名生成 3.1 使用HASH算法(MD5,SHA-1等)生成数据摘要 3.2 数据发送方使用私钥对数据摘要进行加密 4.数字签名的作用 2.1 确认数据发送方 2.2 确认数据完整,没有被篡改 (使用与发送方相同的哈希算法生成 阅读全文
posted @ 2019-07-15 23:17 C兔 阅读(948) 评论(0) 推荐(0)