path包的使用 filepath包的使用 ...
分类:
其他好文 时间:
2019-12-16 10:17:11
阅读次数:
89
1 import json 2 ''' 3 打开网页,直接保存网页proxy_list.txt ,然后用工具将其处理为 json 文件! 4 ''' 5 with open("proxy_list.json","r",encoding="utf8") as f: 6 data_lists = jso ...
分类:
其他好文 时间:
2019-12-16 10:02:57
阅读次数:
105
参考:1、 https://www.geeksforgeeks.org/merge-sort/ 2、《剑指Offer:名企面试官精讲典型编程题》 题目描述 在数组中的两个数字,如果前面一个数字大于后面的数字,则这两个数字组成一个逆序对。输入一个数组,求出这个数组中的逆序对的总数P。并将P对10000 ...
分类:
编程语言 时间:
2019-12-15 20:06:43
阅读次数:
82
1 class Solution: 2 def getDecimalValue(self, head: ListNode) -> int: 3 res = 0 4 lists = [] 5 while head != None: 6 lists.append(head.val) 7 head = h... ...
分类:
其他好文 时间:
2019-12-15 14:15:27
阅读次数:
81
安装:下载地址在:https://cmake.org/download/ 我手头使用的是cmake-3.16.1-win64-x64.msi。 按一般的讨论安装好,启动是这样的: 装完。 其实在Windows下面使用cmake,在某些方面比在linux下还麻烦一些。 为了使用CMake,你需要有ge ...
分类:
其他好文 时间:
2019-12-14 13:52:49
阅读次数:
84
sudo apt-get clean cd /var/lib/apt sudo mv lists lists.old sudo mkdir -p lists/partial sudo apt-get clean sudo apt-get update sudo apt-get upgrade ...
分类:
系统相关 时间:
2019-12-14 12:01:36
阅读次数:
215
1. json_merge 合并Json并返回 2.插入json 3.插入或者更新json字段。 4.更新json字段。 5. 抽取json字段的值。 6.将对象转化为json。 7,移除json的某个属性 对于玩家的多个标志,可以用json来存储和局部更新,会更方便。 ...
分类:
数据库 时间:
2019-12-13 21:49:27
阅读次数:
575
一、创建增加修改 1、实现代码 输出结果 二、删除(del) 1、实现代码 2、输出结果 1、Dict_DelItem 2、Dict_DelItem_KnownHash 3、PyDict_DelItemIf 二、删除pop(k) 实现 输出结果: 1、_PyDict_Pop 2、_PyDict_Po ...
分类:
编程语言 时间:
2019-12-13 21:18:03
阅读次数:
98
Elasticsearch OOM 优化 改文件类型及segments force merge ...
分类:
其他好文 时间:
2019-12-13 13:43:53
阅读次数:
271
Given two binary trees and imagine that when you put one of them to cover the other, some nodes of the two trees are overlapped while the others are n ...
分类:
其他好文 时间:
2019-12-12 23:34:25
阅读次数:
99