码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
bgp Confederation
netns-testbed https://qiita.com/_norin_/items/f2c1b0158ee34abcdd0c Confederation 定义 考虑到在AS内部的防环机制,iBGP之间传递路由只能有一跳。 联邦,在一个AS之内,划分出多个子AS域,建立EBGP邻接关系,可以将 ...
分类:其他好文   时间:2020-07-29 15:03:34    阅读次数:55
nginx note
Nginx 变量的创建和赋值操作发?在全然不同的时间阶段 Nginx 变量的创建只能发?在 Nginx 配置加载的时候, 或者说 Nginx 启动的时候; ?赋值操作则只会发?在请求实际处理的时候。 Nginx 变量名的可见范围虽然是整个配置, 但每个请求都有所有变量的独?副本, 或者说都有各变量? ...
分类:其他好文   时间:2020-07-29 15:02:58    阅读次数:58
VueCli路由配置
import Vue from 'vue' import Router from 'vue-router' Router.prototype.go = function(t) { this.isBack = true console.log('go ' + this.history.current. ...
分类:其他好文   时间:2020-07-29 10:29:00    阅读次数:83
python 类与对象
类的成员实例变量实例变量就是对象个体特有的“数据”。#定义类classDog:def__init__(self,name,age):self.name=name#创建和初始化实例变量nameself.age=age#创建和初始化实例变量age#实例化对象dog=Dog(‘球球‘,2)#对实例变量通过“对象.实例变量”形式访问print(‘这是我家的狗,名字是%s,现在%d岁了!‘%(dog.nam
分类:编程语言   时间:2020-07-28 22:09:04    阅读次数:67
python+selenium 获取table列表中所有数据条数
# 定位到table,并获得table中所有得tr元素 menu_table = self.driver.find_element_by_xpath("//div[@class='datagrid-view1']/div[2]/div/table") rows = menu_table.find_e ...
分类:编程语言   时间:2020-07-28 17:25:27    阅读次数:137
Leetcode.283 | Move Zeroes(Python)
Leetcode.283 Move Zeroes Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero e ...
分类:编程语言   时间:2020-07-28 14:38:35    阅读次数:91
Python 判断子序列
s = "abc" t = "ahbgdc" class Solution: def isSubsequence(self, s: str, t: str): for i in range(len(s)): if s[i] in t: if i <= t.index(s[i]) : return s ...
分类:编程语言   时间:2020-07-28 10:16:14    阅读次数:90
二十六、Scrapy自定义命令
创建命令目录及文件 settings.py中定义命令 代码 from scrapy.commands import ScrapyCommand??class Command(ScrapyCommand): requires_project = True? def syntax(self): retu ...
分类:其他好文   时间:2020-07-28 00:16:25    阅读次数:83
python数据结构_大顶堆和小顶堆
大顶堆和小顶堆 相关介绍可参看:北京大学空地学院数据结构与算法 第六章 6.8.2.2 小节 代码实现如下 class Heap: """二叉堆的实现 小顶堆""" def __init__(self): self.heapList = [0] # 默认一个 0 做占位,使得根节点的索引在 1 上 ...
分类:编程语言   时间:2020-07-27 23:32:44    阅读次数:75
leetcode-329-矩阵中的最长递增路径
题目描述: 方法一:动态规划 O(mnlogmn) class Solution(object): def longestIncreasingPath(self, matrix): if not matrix or not matrix[0]: return 0 m, n = len(matrix) ...
分类:其他好文   时间:2020-07-27 15:46:06    阅读次数:70
21530条   上一页 1 ... 44 45 46 47 48 ... 2153 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!