上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 125 下一页
摘要: # requirepass foobaredrequirepass 123 指定密码123 https://www.cnblogs.com/x-ll123/p/9717351.html 阅读全文
posted @ 2019-10-23 20:37 AngDH 阅读(173) 评论(0) 推荐(0)
摘要: find . -type f -size +800M du -h --max-depth=1 |grep 'G' |sort 哪个文件夹占用高 阅读全文
posted @ 2019-10-23 20:36 AngDH 阅读(211) 评论(0) 推荐(0)
摘要: from redis import ConnectionPool, Redis pool = ConnectionPool(host='localhost',password='aaa123', port=6379, db=0, decode_responses=True) rdb = Redis( 阅读全文
posted @ 2019-10-23 20:33 AngDH 阅读(151) 评论(0) 推荐(0)
摘要: d = 7 sw={ 0:'sun', 1:'tue', 2:'wed' } name =sw.get(d,'unkown') print(name) def get_sum(): return 'sum' def get_mon(): return 'mon' def get_default(): return 'default' sw={ 0:get_sum, 1:get_mon, } d = 阅读全文
posted @ 2019-10-23 08:23 AngDH 阅读(485) 评论(0) 推荐(0)
摘要: 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 阅读(100) 评论(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 阅读(124) 评论(0) 推荐(0)
摘要: 结果 个数 取决于 较小的 list个数 阅读全文
posted @ 2019-10-22 21:35 AngDH 阅读(115) 评论(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 阅读(533) 评论(0) 推荐(1)
摘要: ___ 闭包 阅读全文
posted @ 2019-10-21 23:23 AngDH 阅读(105) 评论(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 阅读(2782) 评论(0) 推荐(0)
上一页 1 ··· 108 109 110 111 112 113 114 115 116 ··· 125 下一页