# 命名元组 from collections import namedtuple subscriber = namedtuple(typename='Subscriber', field_names=['name', 'age']) sub = subscriber('lisi', 10) pri ...
分类:
其他好文 时间:
2020-07-29 15:09:12
阅读次数:
62
给定有效字符串 "abc"。 对于任何有效的字符串 V,我们可以将 V 分成两个部分 X 和 Y,使得 X + Y(X 与 Y 连接)等于 V。(X 或 Y 可以为空。)那么,X + "abc" + Y 也同样是有效的。 例如,如果 S = "abc",则有效字符串的示例是:"abc","aabcb ...
分类:
其他好文 时间:
2020-07-28 22:39:05
阅读次数:
66
e.subject.part.findLinksInto().each(function (node) { console.log(node.data); that.myDiagram.model.setDataProperty(node.data, "prevSeqId", 1); }); ...
分类:
Web程序 时间:
2020-07-28 22:07:16
阅读次数:
112
本篇目标 抓取淘宝MM的姓名,头像,年龄 抓取每一个MM的资料简介以及写真图片 把每一个MM的写真图片按照文件夹保存到本地 熟悉文件保存的过程 PS:如有需要Python学习资料的小伙伴可以加下方的群去找免费管理员领取 1.URL的格式 在这里我们用到的URL是 http://mm.taobao.c ...
分类:
编程语言 时间:
2020-07-28 17:14:57
阅读次数:
88
看完这一篇,再也不怕面试官问我IntentService的原理 ...
分类:
其他好文 时间:
2020-07-28 17:00:50
阅读次数:
70
php 压缩文件夹 例子来源于php官方文档。 <?php { /** * Add files and sub-directories in a folder to zip file. * @param string $folder * @param ZipArchive $zipFile * @p ...
分类:
Web程序 时间:
2020-07-28 16:55:09
阅读次数:
90
简单的32位rop 读取随机数并传入。sub_804871F的返回值作为sub_80487D0的参数 第二个read就是溢出点 strncmp对我们输入的内容和随机数进行了的比较,通过\x00终止strlen函数来绕过后面的strncmp。 之后就可以进行正常的rop 计算覆盖v5的偏移0x2c-0 ...
分类:
其他好文 时间:
2020-07-28 14:41:31
阅读次数:
117
pub/sub 这个应该?家?到最?的设计模式了, class Event{ constructor(){ this.callbacks = {} } $off(name){ this.callbacks[name] = null } $emit(name, args){ let cbs = thi ...
分类:
其他好文 时间:
2020-07-28 14:40:21
阅读次数:
82
键空间通知(Keyspace Notification)是一个从Redis 2.8.0版本开始可用的功能。 1、简介: 键空间通知基于订阅Pub/Sub(发布/订阅),当库中的key发生改变时,能够对你感兴趣的事件进行通知。 可能接收到的事件示例,如下所示: 所有影响到一个给定键的命令。 所有接收到 ...
分类:
其他好文 时间:
2020-07-28 13:58:08
阅读次数:
106
@model IEnumerable<mvctest.Models.SysUser> @{ ViewBag.Title = "Index"; } <h2>Index</h2> @using (Html.BeginForm()) { <p> @Html.ActionLink("Create New", ...
分类:
Web程序 时间:
2020-07-27 15:49:18
阅读次数:
79