摘要: /* *gcc -o callpy callpy.cpp -I/usr/include/python3.5 -lpython3.5m */ #include #include int main(int argc, char** argv) { // 初始化Python //在使用Python系统前,必须使用Py_Initialize对其 //进行... 阅读全文
posted @ 2019-03-02 20:41 ForMeDream 阅读(695) 评论(0) 推荐(0) 编辑
摘要: deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties deb http://mirrors.aliyun.com/ubuntu/ xenial main restri 阅读全文
posted @ 2019-03-02 16:03 ForMeDream 阅读(1168) 评论(0) 推荐(0) 编辑
摘要: /***EPOLL ET 触发必须使用非阻塞,LT触发可以阻塞/非阻塞。*read 函数 非阻塞读需 忙轮寻 soket关闭返回0,循环读完数据*如果已经读完再读read返回 -1,errno=11(EAGIAN)则退出轮循***/#include #include #include #include #include #include #include #include #include #i... 阅读全文
posted @ 2019-03-02 14:20 ForMeDream 阅读(376) 评论(0) 推荐(0) 编辑
摘要: sudo rm -rf python sudo ln -s /usr/bin/python3 /usr/bin/python 阅读全文
posted @ 2019-03-02 14:03 ForMeDream 阅读(3135) 评论(0) 推荐(0) 编辑