上一页 1 ··· 106 107 108 109 110 111 112 113 114 ··· 123 下一页
摘要: import time def decorator(func): def wrapper(): print time.time() func() return wrapper def f1(): print('xxxxxx') f= decorator(f1) f() import time def decorat... 阅读全文
posted @ 2019-10-22 23:07 AngDH 阅读(93) 评论(0) 推荐(0)
摘要: from functools import reduce list_x = ['1','2','3','4','5'] r= reduce(lambda x,y:x+y,list_x,'aaa') print r --aaa12345 阅读全文
posted @ 2019-10-22 21:59 AngDH 阅读(110) 评论(0) 推荐(0)
摘要: 结果 个数 取决于 较小的 list个数 阅读全文
posted @ 2019-10-22 21:35 AngDH 阅读(103) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/weixin_42434700/article/details/143362373 从这里找下载包 https://unofficial-builds.nodejs.org/download/release/ 解压后直接 加环境变量 vim /etc/pr 阅读全文
posted @ 2019-10-22 11:01 AngDH 阅读(495) 评论(0) 推荐(1)
摘要: ___ 闭包 阅读全文
posted @ 2019-10-21 23:23 AngDH 阅读(95) 评论(0) 推荐(0)
摘要: 1, 安装 2. 修改 配置 文件 ,后台 启动 vim /etc/redis.conf 找到 daemonize 属性 将no改为yes 3.启动 redis-server /etc/redis.conf & 解决Redis错误MISCONF Redis is configured to save 阅读全文
posted @ 2019-10-21 17:29 AngDH 阅读(2768) 评论(0) 推荐(0)
摘要: 把 all_urls 这个list 的每一个 值 ,进行前面的表达式判断 list_x = [1,0,1,0,0,1] r = filter(lambda x: True if x==1 else False,list_x ) print(list(r)) 阅读全文
posted @ 2019-10-13 15:55 AngDH 阅读(184) 评论(0) 推荐(0)
摘要: //加载本地cookie 阅读全文
posted @ 2019-10-12 17:09 AngDH 阅读(2098) 评论(0) 推荐(0)
摘要: 匹配所有行 阅读全文
posted @ 2019-10-12 15:46 AngDH 阅读(126) 评论(0) 推荐(0)
摘要: 前言, 使用 国内 代理 源 安装 1.安装 2.查看 有哪些 环境 3.设置 虚拟环境 位置 4.创建 虚拟 环境 5 .跳出 进入 包安装 失败 到 这个 网站 找 6.指定 python 版本 安装 路径 空格 环境名字 linux 里 安装 1 下面是不方便的版本 1.安装 2.新建环境 会 阅读全文
posted @ 2019-10-11 00:25 AngDH 阅读(258) 评论(0) 推荐(0)
上一页 1 ··· 106 107 108 109 110 111 112 113 114 ··· 123 下一页