码迷,mamicode.com
首页 >  
搜索关键字:__call__    ( 9711个结果
[LeetCode] 1089. Duplicate Zeros 复写零
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
软件漏洞-跳板指令定位shellcode
软件漏洞-跳板指令定位shellcode 上一次我们写的shellcode通过栈来看是这样的 唯一的问题就是这里的返回地址是写死了的,因为栈内存的地址是经常改变的 解决如何跳转到shellcode地址的问题 在我们的shellcode指令前有一个ret指令 ret 在汇编中执行ret的指令时,需要进 ...
分类:系统相关   时间:2021-03-29 12:36:31    阅读次数:0
python 基于元类的单例
创建元类的基类(Singleton) ` from threading import RLock class SingletonType(type): single_lock = RLock() def __call__(cls, *args, **kwargs): with SingletonTy ...
分类:编程语言   时间:2021-03-29 11:54:40    阅读次数:0
使用js手动实现bind、call、apply功能
Function.prototype.mycall = function () { const [first, ...rest] = arguments; const ctx = first || window; ctx.func = this; const ret = ctx.func(...re ...
分类:移动开发   时间:2021-03-26 15:24:30    阅读次数:0
ABAP 唯一GUI ID 的使用
当在创建日志表,想生成一个永远不会重复的序列号做唯一键值,来保证每次日志记录都不会被覆盖。 有两种方式,一种带日期的方式,一种是纯GUI ID,参考如下: 1. data: lv_timestamp type timestampl, lv_time_c(30) type c, lv_date typ ...
分类:其他好文   时间:2021-03-17 14:41:40    阅读次数:0
call、bind、apply的实现
call和apply的应用场景: 判断数据类型: Object.prototype.toString用来判断类型再合适不过,借用它我们几乎可以判断所有类型的数据: function isType(data, type) { const typeObj = { '[object String]': ' ...
分类:移动开发   时间:2021-03-17 14:28:08    阅读次数:0
MySQL基础知识:MySQL Connection和Session
在connection的生命里,会一直有一个user thread(以及user thread对应的THD)陪伴它。 Connection和Session概念 来自Stackoverflow的一个回答: A session is just a result of a successful conne ...
分类:数据库   时间:2021-03-17 14:12:26    阅读次数:0
call、apply、bind方法分析及应用
call call()方法功能:指定函数的this,执行函数并传参 参数: fn.call(thisArg,arg1,arg2,ar3,......) ? thisArg 指定让this指向的对象,若指定了null或者undefined则内部this指向window ? arg1,arg2,ar3, ...
分类:移动开发   时间:2021-03-17 14:11:32    阅读次数:0
vim 基础知识
leader https://vi.stackexchange.com/questions/836/what-is-leader Vim is full of various commands, which are assigned to almost all keys on the keyboar ...
分类:系统相关   时间:2021-03-15 11:29:06    阅读次数:0
python中将函数存储在模块里(导入特定的函数)
1、将函数存储在模块里 def fun1(x): ## 在模块module1.py中定义三个函数 print(x.upper()) def fun2(x): print(x.title()) def fun3(x): print(" ",x) 2、测试能否直接调用函数 >>> fun1("aaa") ...
分类:编程语言   时间:2021-03-15 10:39:46    阅读次数:0
9711条   上一页 1 ... 6 7 8 9 10 ... 972 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!