class Solution(object): def intersect(self, nums1, nums2): if len(nums1) > len(nums2): return self.intersect(nums2, nums1) m = collections.Counter() f ...
分类:
编程语言 时间:
2021-04-01 13:42:22
阅读次数:
0
### Python网络爬虫之requests模块 ###### 什么是requests模块 ? request模块是python中原生的基于网络请求的模块,其主要作用是用来模拟浏览器发起请求。功能强大,用法简洁高效。在爬虫领域中占着半壁江山的地位。 ###### 为什么要使用request模块 ? ...
分类:
编程语言 时间:
2021-03-31 12:17:39
阅读次数:
0
import contextlib import pyhdfs class HdfsUtil(object): def __init__(self, hosts='namenode1:9870,namenode2:9870', user_name='hdfs'): self.hosts = host ...
分类:
编程语言 时间:
2021-03-30 13:29:22
阅读次数:
0
import heapq class TopK: """ 获取大量元素 topk 大个元素,固定内存 思路: 1. 先让入元素前 k 个建立一个最小堆 2. 迭代剩余元素: 如果当前元素小于堆顶元素,跳过该元素 否则替换堆顶元素为当前元素,并重新调整堆 """ def __init__(self, ...
分类:
编程语言 时间:
2021-03-30 13:16:26
阅读次数:
0
# 下载 官网地址:https://downloads.mysql.com/archives/get/p/23/file/mysql-8.0.20-linux-glibc2.12-x86_64.tar.xz ################清理原有mysql环境################### ...
分类:
数据库 时间:
2021-03-30 13:06:10
阅读次数:
0
Given a fixed length array arr of integers, duplicate each occurrence of zero, shifting the remaining elements to the right. Note that elements beyond ...
分类:
其他好文 时间:
2021-03-30 12:46:57
阅读次数:
0
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None # 递归 # 时间复杂度:O(n ...
分类:
其他好文 时间:
2021-03-29 12:51:26
阅读次数:
0
本文翻译自:Git - Ignore node_modules folder everywhere I have a project containing multiple other projects : 我有一个包含多个其他项目的项目: Main project 主要项目 Mini projec ...
分类:
其他好文 时间:
2021-03-29 12:17:32
阅读次数:
0
Tripwire is a host based Intrusion detection system for Linux. Tripwire monitors Linux system to detect and report any unauthorized changes to the fil ...
分类:
系统相关 时间:
2021-03-18 14:32:34
阅读次数:
0
idea 安装目录 的idea.exe.vmoptions 改了,没起作用,idea64.exe.vmoptions 也改了,也没起作用。 idea的编码格式也设置了,没起作用 最后起作用的是: 先打开tomcat的安装目录 编辑 conf 目录下的 logging.properties 用note ...
分类:
其他好文 时间:
2021-03-17 14:02:51
阅读次数:
0