# # @lc app=leetcode.cn id=70 lang=python3 # # [70] 爬楼梯 # # @lc code=start class Solution: def climbStairs(self, n: int) -> int: if n == 1: return 1 i ...
分类:
其他好文 时间:
2020-11-07 16:09:23
阅读次数:
19
异同 当我们在form组件用clean函数(无论是局部或者全局钩子函数)验证字段是否有错误时,如果字段正确则最终clean函数要返回该字段值(全局钩子返回self.cleaned_data),是为了放入form对象的cleaned_data字典中,以供后续使用。 出现错误则有两种选择 raise V ...
分类:
其他好文 时间:
2020-11-06 01:24:02
阅读次数:
13
-频率是什么?节流,访问控制 -内置的访问频率控制类SimpleRateThrottle -写一个类,继承SimpleRateThrottle -class MyThrottle(SimpleRateThrottle): scope='aaa' def get_cache_key(self, req ...
分类:
其他好文 时间:
2020-11-02 10:43:02
阅读次数:
27
1. 题目描述 2. 代码 1 class Solution: 2 def removeDuplicates(self, nums: 'List[int]') -> int: 3 prevalue = 0 4 n = len(nums) 5 count = 0 6 i,j = 0,0 7 while ...
分类:
编程语言 时间:
2020-11-02 09:55:41
阅读次数:
32
Elyra is a set of AI-centric extensions to JupyterLab Notebooks. Elyra currently includes: AI Pipelines visual editor Ability to run a notebook as a b ...
分类:
其他好文 时间:
2020-11-02 09:55:00
阅读次数:
19
按下 Ctrl + PageUp 不松 或者 按下 Ctrl + PageDn 不松 多个文档,就会自动快速切换,方便阅览文件中的差异之处 ...
分类:
其他好文 时间:
2020-11-01 09:28:26
阅读次数:
12
1.标题 {$rs.title} 2.内容页网址 {$rs.url} 3.封面图(缩略图) {$rs.picurl} 4.时间 {$rs.time} 5.序号,比如1 2 3 4 5 6 你可以把他放在class里边实现一些不一样的特效 比如class="list_{$i}" {$i} 6.内容介绍 ...
分类:
其他好文 时间:
2020-10-29 10:08:59
阅读次数:
29
1.属性 引:计算一个人的MBI值 class People: def __init__(self,name,weight,hight): self.name = name self.__weight = weight self.__hight = hight def EX(self): resul ...
分类:
编程语言 时间:
2020-10-29 09:48:18
阅读次数:
24
Splendid_MineCraft 题目标题就已经暗示这题是SMC了(self-modifying code)。 工具:exeinfo,x32dbg和IDA7.0 先丢进exeinfo里查看相关信息: 用IDA打开: 根据可以字符串“Wrong!\n”直接锁定sub_401080为main函数。 ...
分类:
其他好文 时间:
2020-10-26 11:52:23
阅读次数:
27
1 class Solution: 2 def longestMountain(self, A: List[int]) -> int: 3 n = len(A) 4 left = [0] * n # 初始化 5 for i in range(1, n): 6 left[i] = (left[i - ...
分类:
其他好文 时间:
2020-10-26 11:28:01
阅读次数:
20