摘要: update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1 update-alternatives --install /usr/bin/python python /usr/bin/python3.4 2 up 阅读全文
posted @ 2020-07-21 10:52 聪明不绝顶 阅读(351) 评论(0) 推荐(0) 编辑
摘要: 生成:pip freeze >requirements.txt 安装:pip install -r requirements.txt 阅读全文
posted @ 2020-07-21 10:40 聪明不绝顶 阅读(117) 评论(0) 推荐(0) 编辑
摘要: LOCAL_PROTOC_FLAGS := --proto_path=$(LOCAL_PATH)/proto/ 阅读全文
posted @ 2020-06-22 16:23 聪明不绝顶 阅读(193) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-06-12 15:31 聪明不绝顶 阅读(0) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-05-19 17:26 聪明不绝顶 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 参考资料:https://my.oschina.net/u/4031275/blog/2879060 阅读全文
posted @ 2020-05-19 17:15 聪明不绝顶 阅读(343) 评论(0) 推荐(0) 编辑
摘要: 1.get显示器句柄 EGLDisplay* egl_display = eglGetDisplay(EGL_DEFAULT_DISPLAY); // or EGLNativeDisplayType hDisplayType = static_cast<EGLNativeDisplayType>(f 阅读全文
posted @ 2020-04-29 17:18 聪明不绝顶 阅读(655) 评论(0) 推荐(0) 编辑
摘要: 一、10亿个数中取前1000大的数 1.排序法: 先排序,再取前1000缺点:时间复杂度高 2.分治法: 类似快排中partition的操作,随机选一个数t,然后对整个数组进行partition,会得到两部分,前一部分的数都大于t,后一部分的数都小于t。如果前一部分数大于1000个,就继续在前一部分 阅读全文
posted @ 2020-03-10 10:00 聪明不绝顶 阅读(227) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-09-09 21:12 聪明不绝顶 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-09-09 10:49 聪明不绝顶 阅读(0) 评论(0) 推荐(0) 编辑