摘要:
a=[1,2,3,4,5,6,7,8] b=[i**2 for i in a if i >= 5] print b 阅读全文
摘要:
# requirepass foobaredrequirepass 123 指定密码123 https://www.cnblogs.com/x-ll123/p/9717351.html 阅读全文
摘要:
find . -type f -size +800M du -h --max-depth=1 |grep 'G' |sort 哪个文件夹占用高 阅读全文
摘要:
from redis import ConnectionPool, Redis pool = ConnectionPool(host='localhost',password='aaa123', port=6379, db=0, decode_responses=True) rdb = Redis( 阅读全文
摘要:
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 = 阅读全文