TGTGInsighttelegram intelligenceLIVE / telegram public index
← 折腾实验室频道

TGINSIGHT SIMILAR POSTS

查找相似内容

Source channel @TossLabChannel · Post #10 · 10月16日

#Task#Scrip#定时#签到#脚本猫 #ScriptCat -脚本猫 脚本猫,一个可以执行用户脚本的浏览器扩展,万物皆可脚本化,让你的浏览器可以做更多的事情! 安装脚本 可以从各大用户脚本市场获取脚本进行安装,脚本猫所支持的后台脚本专门建立了一个市场:后台脚本. 安装方式与油猴一样,同时也是兼容绝大部分油猴脚本的 开发文档 尽力完善中,因为是参考油猴的设计,与油猴脚本相通的地方很多,就算你使用其它油猴管理器,你也可以参考脚本猫的文档来开发! 安装扩展 我们已经上架了扩展商店,如果你无法访问商店内容,请在release中下载 zip 包手动进行安装 扩展商城 • Chrome 商店 • Edge 商店 • FireFox 商店 交流 • Telegram • 油猴中文网 📢 群聊:@TossIPhone 🎈 频道:@TossIChannel 每天推送有用有趣的内容,包括但不限于#Emby#VPS#APP#Crack#Task#Lottery#Mooch#AppleNews#还有每天都有的抽奖活动,加入我们,一起搞机,一起折腾!

Results

找到 1 条相似帖子

搜索 #partialmethod

当前筛选 #partialmethod清除筛选
djangoproject

@djangoproject · Post #88 · 2016/07/11 11:54

https://docs.python.org/3/library/functools.html#functools.partialmethod class #functools.partialmethod(func, *args, **keywords) Return a new #partialmethod descriptor which behaves like partial except that it is designed to be used as a method definition rather than being directly callable. func must be a descriptor or a callable (objects which are both, like normal functions, are handled as descriptors). When func is a descriptor (such as a normal Python function, classmethod(), staticmethod(), abstractmethod() or another instance of partialmethod), calls to __get__ are delegated to the underlying descriptor, and an appropriate partial object returned as the result. When func is a non-descriptor callable, an appropriate bound method is created dynamically. This behaves like a normal Python function when used as a method: the self argument will be inserted as the first positional argument, even before the args and keywords supplied to the partialmethod constructor.