码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果)
python 引用对象相等,还是用list.extend()
class get_data_class: def process(self,s,dic_zhuli,one_symbol,scale,format_list): if not s: # [["2020-05-21 15:00:00","2737.000","2742.000","2737.000" ...
分类:编程语言   时间:2020-05-22 13:03:06    阅读次数:53
LeetCode #974. Subarray Sums Divisible by K 数组
Description Given an array A of integers, return the number of (contiguous, non empty) subarrays that have a sum divisible by K. Example 1: Note: 1 思路 ...
分类:编程语言   时间:2020-05-22 12:29:23    阅读次数:47
模块3-1 面向对象
文档:模块3-1 面向对象.note 链接:http://note.youdao.com/noteshare?id=89fdc8ca1f3cff55a6525ce5d2bdc5ce&sub=87F9A4252A62483CA21CF026DEE5CA18 ...
分类:其他好文   时间:2020-05-22 09:42:49    阅读次数:48
JavaScript 新旧替换四:继承
目录 "引子" "ES5 方式" "ES2015+ 方式" "ES2015+ 方式语法点" "参考资料" 引子 在一些书籍中花费了不少的篇幅进行讲述,新的语法中也出现了相关的关键字,实现的方式中也涉及到 JavaScript 中很重要的知识点。 注意 :JavaScript 中并没有类似 Java ...
分类:编程语言   时间:2020-05-22 09:38:06    阅读次数:43
Django之resquest进入中间件《一》
class WSGIHandler(base.BaseHandler): request_class = WSGIRequest def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) #在wsgihandler生 ...
分类:其他好文   时间:2020-05-21 19:49:44    阅读次数:45
crypt — 单向字符串散列
说明 crypt ( string $str [, string $salt ] ) : string crypt() 返回一个基于标准 UNIX DES 算法或系统上其他可用的替代算法的散列字符串。 salt 参数是可选的。然而,如果没有salt的话,crypt()创建出来的会是弱密码。 php ...
分类:其他好文   时间:2020-05-21 16:26:48    阅读次数:66
414. Third Maximum Number
Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexi ...
分类:其他好文   时间:2020-05-21 10:38:00    阅读次数:54
类和正则表达
设计一个三维向量类,并实现向量的加法、减法以及向量与标量的乘法和除法运算。 class Vecter3: def_init_(self,x=0,y=0,z=0): self.X=x self.Y=y self.Z=z def_add_(self,n): r=Vecter3() r.X=self.X+ ...
分类:其他好文   时间:2020-05-20 18:50:52    阅读次数:42
Python3调用Salt API
import urllib.request,urllib.parse,json class saltAPI(): def __init__(self): self.url = 'http://10.10.2.11:8000' self.data = {'username' : 'salt-api', ...
分类:编程语言   时间:2020-05-20 18:47:33    阅读次数:53
python 自定义错误处理
简单的自定义异常处理 class CustomizeError(BaseException): def __init__(self, msg): self.msg = msg def __str__(self): return self.msg try: raise CustomizeError(' ...
分类:编程语言   时间:2020-05-20 17:12:34    阅读次数:85
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!