摘要: 笔记神器: Gitee+Typora+Git Bash (全部免费) Gitee(码云)相比于github的优势: 免费用户也可以创建私有目录5G存储空间(GitHub貌似推荐存储空间在1G以内)同步速度非常快 免费用户也可以创建私有目录 5G存储空间(GitHub貌似推荐存储空间在1G以内) 同步 阅读全文
posted @ 2018-07-11 13:21 Apollo_zhanghongbo 阅读(2206) 评论(0) 推荐(0) 编辑
摘要: 相当于None https://blog.csdn.net/lanchunhui/article/details/49725065 阅读全文
posted @ 2018-06-23 11:00 Apollo_zhanghongbo 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 本地电脑是win10系统,用本地的pycharm,ssh连接到服务器。最近需用matplotlib画一些图,于是试着配置了一下。 主要需要配置x11 forwarding, Xming, 配置ssh支持X11 farwarding 开启Xming服务 给pycharm配置DISPLAY变量,这一步不 阅读全文
posted @ 2018-06-22 21:36 Apollo_zhanghongbo 阅读(2953) 评论(1) 推荐(0) 编辑
摘要: 当在文本文件中,空值为null,读入dataframe中,空值为NaN时,使用pd.isnull()\pd.notnull()对一列进行空值判断; 参考:https://blog.csdn.net/xidianliutingting/article/details/62041891 阅读全文
posted @ 2018-06-19 17:49 Apollo_zhanghongbo 阅读(8567) 评论(0) 推荐(0) 编辑
摘要: 参考:http://www.runoob.com/python/att-string-format.html https://www.hackerrank.com/challenges/py-set-mutations/problem?h_r=next-challenge&h_v=zen 阅读全文
posted @ 2018-06-19 14:41 Apollo_zhanghongbo 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 开头几行:head 结尾几行:tail 中间几行:sed 1. 如果你只想看文件的前100行,可以使用head命令,如 head -100 filename 2. 如果你想查看文件的后100行,可以使用tail命令,如: tail -100 filename 或 tail -n 100 filena 阅读全文
posted @ 2018-06-19 10:42 Apollo_zhanghongbo 阅读(1414) 评论(0) 推荐(0) 编辑
摘要: 1. 无符号右移 >>> 或 >>> = 无符号右移(>>>)跟右移(>>)运算符不一样。 右移不改变数的正负。 对于一个正数,无符号右移不会变成负数(相当于除以1再取整);但是对于一个负数,无符号右移会将负数变成正数; int i = -4; System.out.printf("%-10d %3 阅读全文
posted @ 2018-06-14 08:37 Apollo_zhanghongbo 阅读(5624) 评论(0) 推荐(3) 编辑
摘要: *args是可变长参数,在函数内部以tuple形式存储; >>> fun_var_args(1, 'two', 3)arg: 1<type 'tuple'> >>>fun_var_args(1, "two",3) arg: 1another arg: twoanother arg: 3 对于参数** 阅读全文
posted @ 2018-06-12 14:42 Apollo_zhanghongbo 阅读(252) 评论(0) 推荐(0) 编辑
摘要: Counter可以用来统计list中有哪些元素,每个出现多少次; defaultdict中指定value的类型后,比如指定为int,则对于没有出现过的key,其value为0,而不是报错;(value类型还能指定为list,则没出现过的key,其value为[]); OrderedDict中可以进行 阅读全文
posted @ 2018-06-12 14:27 Apollo_zhanghongbo 阅读(221) 评论(0) 推荐(0) 编辑
摘要: https://github.com/eagleon/eagleon.github.com/issues/2 阅读全文
posted @ 2018-06-11 21:08 Apollo_zhanghongbo 阅读(2718) 评论(0) 推荐(0) 编辑