上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 55 下一页

2018年5月12日

sql 基础练习 计算7天各个时间点的总和 group by order mysql一次查询多个表

摘要: SQL 基础练习 mysql 计算7天各个时间点的总和 例如 20180911 - 20180913 的总的impression click cost 和数 count(*):所有行进行统计,包括NULL行 (记得这个性能差些,不建议使用)count(1):所有行进行统计,包括NULL行count( 阅读全文

posted @ 2018-05-12 23:59 星河赵 阅读(532) 评论(0) 推荐(0) 编辑

2018年5月9日

sql 数据查询

摘要: 1.数据查询 阅读全文

posted @ 2018-05-09 18:37 星河赵 阅读(224) 评论(0) 推荐(0) 编辑

2018年5月7日

Mac git pull失败,最新操作系统导致 SSH issues with Mac OS X High Sierra

摘要: Mac 升级到最新操作系统ssh加密方式和gitlub不一样,导致不能git pull 如:mac是md5加密方式,gitlut是aes-256-cbc加密方式 解决方法如下 A coworker of mine was reporting an issue with SSH after updat 阅读全文

posted @ 2018-05-07 11:08 星河赵 阅读(288) 评论(0) 推荐(0) 编辑

2018年5月3日

Python进行URL解码

摘要: 所用模块:urllib 所用函数:urllib.unquote() 案例 输出 问题扩展 urllib.unquote()目的是对url编码进行解码,与该函数对应的是编码函数urllib.quote() 通常如果一样东西需要编码,说明这样东西并不适合传输。原因多种多样,如Size过大,包含隐私数据。 阅读全文

posted @ 2018-05-03 10:44 星河赵 阅读(4305) 评论(0) 推荐(0) 编辑

2018年5月2日

Python 执行linux 命令

摘要: 2.os.popen # 该方法不但执行命令还返回执行后的信息对象 popen(command [, mode='r' [, bufsize]]) -> pipeOpen a pipe to/from a command returning a file object. tmp = os.popen 阅读全文

posted @ 2018-05-02 14:25 星河赵 阅读(512) 评论(0) 推荐(0) 编辑

2018年5月1日

vim 配色(mac)

摘要: 1.进入当前用户目录,新建 .vimrc ,并加入如下内容: 2.开启行号 选择颜色 阅读全文

posted @ 2018-05-01 17:22 星河赵 阅读(190) 评论(0) 推荐(0) 编辑

Linux: grep多个关键字“与”和“或”

摘要: 1、或操作 2、与操作 3、其他操作 阅读全文

posted @ 2018-05-01 16:52 星河赵 阅读(39777) 评论(0) 推荐(3) 编辑

2018年4月27日

python unicode to str and str to unicode

摘要: @staticmethod def unicode2str(p_unicode): v = p_unicode.encode('unicode-escape').decode('string_escape') if p_unicode is not None else None return v @staticmethod def... 阅读全文

posted @ 2018-04-27 18:09 星河赵 阅读(200) 评论(0) 推荐(0) 编辑

2018年4月20日

UnicodeDecodeError: 'ascii' codec can't decode byte 0xa3 in position 1: ordinal not in range(128)

摘要: 使用codecs模块 codecs模块能在处理字节流的时候提供很大帮助。你可以用定义的编码来打开文件并且你从文件里读取的内容会被自动转化为Unicode对象。 试试这个: 阅读全文

posted @ 2018-04-20 19:42 星河赵 阅读(375) 评论(0) 推荐(0) 编辑

2018年4月19日

查看本机密钥 以及服务器授权密钥 免密码登录

摘要: 服务器授权密钥: vim ~/.ssh/authorized_keys 查看本机密钥 cat ~/.ssh/id_rsa.pub 阅读全文

posted @ 2018-04-19 17:35 星河赵 阅读(2158) 评论(0) 推荐(0) 编辑

上一页 1 ··· 28 29 30 31 32 33 34 35 36 ··· 55 下一页

导航