c/c++ 【整理】Python Socket Server with C++ Socket Client通信 Python与C++通信,早前博客(【整理】Linux Socket网络编程_TCP编程(4)_C++与PythonSocket通信)有一篇是:C++做服务端,Python做客户端,这一篇正好相反。 ... 06月09日 阅读 9,285 views 发表评论 阅读全文
Python 【分享】Python 3.4.3之asyncio tcp server Server端: import asyncio @asyncio.coroutine def handle_echo(reader, writer): data = yield from reader... 05月15日 阅读 6,991 views 发表评论 阅读全文
flask 【已解决】How to fix: “UnicodeDecodeError: ‘ascii’ codec can’t decode byte” 参考:https://stackoverflow.com/questions/21129020/how-to-fix-unicodedecodeerror-ascii-codec-cant-decod... 02月28日 阅读 3,173 views 发表评论 阅读全文
Python 【分享】阿里云主机安装Pandas报错:gcc: internal compiler error: Killed (program cc1) 由于阿里云的配置比较低,在安装pandas的时候,竟然报了个错: internal compiler error: Killed (program cc1plus) 这个错误的主要问题是系统内存不足导... 02月01日 阅读 7,213 views 发表评论 阅读全文
Python 【整理】Python/Pandas datetime类型在Highcharts上显示 这两天借助HighCharts开发了个图表,发现HighCharts果然好用。不过显示Python的时间戳还是花了些时间。 其实原理就是把python的时间转换成时间戳发给HighCharts,然后H... 01月31日 阅读 5,703 views 发表评论 阅读全文
flask 【整理】Flask通过Gunicorn部署为什么还要再加上Nginx 参考来源于: Nginx、Gunicorn在服务器中分别起什么作用? Gunicorn 前面一定要套一个 Nginx 吗? 通过上面资料的学习,大概可以整理出来为什么要在gunicorn可以用的基础上... 01月28日 阅读 7,300 views 发表评论 阅读全文
Python 【整理】Python socket断线自动重连 感谢GitHub,在我想到解决方案后,发现GitHub已经有人把代码实现了。参考源码:https://github.com/mike-zhang/pyExamples/blob/master/sock... 12月24日 阅读 24,138 views 发表评论 阅读全文
Python 【分享】Windows无法安装Pandas,Numpy,Numba怎么办 昨天本人在Windows 10系统给Python 3.4安装个Numba库,结果耗费1个小时,未能安装成功。 最后,发现国外一个大学网站,提供了编译好的二进制包,超级好用有木有,下载下来之后,执行命令... 12月19日 阅读 9,928 views 发表评论 阅读全文
Python 【整理】Pandas Dataframe操作技巧 本篇博客整理各种pandas中dataframe的操作技巧,长期更新。 1:原有列基础生成新列 常见使用情景:两列相减的值为新的一列,或者多列操作生成新的一列 技巧: import pandas as... 12月02日 阅读 14,169 views 发表评论 阅读全文
Python 【分享】Python时间排序 本文来源于:http://www.cnblogs.com/lkprof/p/3179850.html 不过原博客代码中是有点小问题,经过我测试运行,没问题才贴出来代码。 问题1:如果日期中有千年以前的... 12月01日 阅读 4,331 views 发表评论 阅读全文