会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Apollo
博客园
首页
新随笔
联系
管理
订阅
2018年7月11日
笔记神器: Gitee+Typora+Git Bash (全部免费)
摘要: 笔记神器: Gitee+Typora+Git Bash (全部免费) Gitee(码云)相比于github的优势: 免费用户也可以创建私有目录5G存储空间(GitHub貌似推荐存储空间在1G以内)同步速度非常快 免费用户也可以创建私有目录 5G存储空间(GitHub貌似推荐存储空间在1G以内) 同步
阅读全文
posted @ 2018-07-11 13:21 Apollo_zhanghongbo
阅读(2258)
评论(0)
推荐(0)
2018年6月23日
np.newaxis为 numpy.ndarray(多维数组)增加一个轴
摘要: 相当于None https://blog.csdn.net/lanchunhui/article/details/49725065
阅读全文
posted @ 2018-06-23 11:00 Apollo_zhanghongbo
阅读(452)
评论(0)
推荐(0)
2018年6月22日
pycharm远程ssh连接,配置在本地用matplotlib画图
摘要: 本地电脑是win10系统,用本地的pycharm,ssh连接到服务器。最近需用matplotlib画一些图,于是试着配置了一下。 主要需要配置x11 forwarding, Xming, 配置ssh支持X11 farwarding 开启Xming服务 给pycharm配置DISPLAY变量,这一步不
阅读全文
posted @ 2018-06-22 21:36 Apollo_zhanghongbo
阅读(3098)
评论(1)
推荐(0)
2018年6月19日
python dataframe 空值判断
摘要: 当在文本文件中,空值为null,读入dataframe中,空值为NaN时,使用pd.isnull()\pd.notnull()对一列进行空值判断; 参考:https://blog.csdn.net/xidianliutingting/article/details/62041891
阅读全文
posted @ 2018-06-19 17:49 Apollo_zhanghongbo
阅读(8633)
评论(0)
推荐(0)
python中str.format()函数
摘要: 参考: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
阅读(215)
评论(0)
推荐(0)
ubuntu-shell命令抽取文件一部分行
摘要: 开头几行: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
阅读(1446)
评论(0)
推荐(0)
2018年6月14日
java中的无符号移位运算
摘要: 1. 无符号右移 >>> 或 >>> = 无符号右移(>>>)跟右移(>>)运算符不一样。 右移不改变数的正负。 对于一个正数,无符号右移不会变成负数(相当于除以1再取整);但是对于一个负数,无符号右移会将负数变成正数; int i = -4; System.out.printf("%-10d %3
阅读全文
posted @ 2018-06-14 08:37 Apollo_zhanghongbo
阅读(5801)
评论(0)
推荐(3)
2018年6月12日
python中的*args 和**kwargs
摘要: *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
阅读(257)
评论(0)
推荐(0)
collections中的Counter、defaultdict和OrderedDict
摘要: Counter可以用来统计list中有哪些元素,每个出现多少次; defaultdict中指定value的类型后,比如指定为int,则对于没有出现过的key,其value为0,而不是报错;(value类型还能指定为list,则没出现过的key,其value为[]); OrderedDict中可以进行
阅读全文
posted @ 2018-06-12 14:27 Apollo_zhanghongbo
阅读(247)
评论(0)
推荐(0)
2018年6月11日
alias命令切换python版本
摘要: https://github.com/eagleon/eagleon.github.com/issues/2
阅读全文
posted @ 2018-06-11 21:08 Apollo_zhanghongbo
阅读(2742)
评论(0)
推荐(0)
下一页
公告