上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 125 下一页
摘要: 安装 在Mac OS系统中,无法使用netstat来查看端口占用情况,可以使用lsof来代替,这种方式在Linux下也适用。 n 表示不显示主机名 P 表示不显示端口俗称 不加 sudo 只能查看以当前用户运行的程序 查看指定端口以及对应的Command和PID: 输出 简单的: 观察发现pid为1 阅读全文
posted @ 2018-10-24 13:28 公众号python学习开发 阅读(5182) 评论(0) 推荐(0)
摘要: 运行pip install gevent报错 错误信息如下 解决方案 安装xcode 再次运行 pip install gevent安装成功。 阅读全文
posted @ 2018-10-24 10:00 公众号python学习开发 阅读(1760) 评论(0) 推荐(0)
摘要: 文本编辑器vim vim常用操作 vim是一个强大的全屏幕文本编辑器,是Linux上最常用的文本编辑器,它的作用是建立,编辑,显示文本文件。 vim没有菜单,只有命令。 输入a或i或o进入编辑命令,下方显示insert。按esc返回命令模式。 :wq保存退出 :q! 不保存退出。 下面通过表格的方式 阅读全文
posted @ 2018-10-23 22:36 公众号python学习开发 阅读(201) 评论(0) 推荐(0)
摘要: gunicorn 换成你的关键字即可。 阅读全文
posted @ 2018-10-23 18:03 公众号python学习开发 阅读(563) 评论(0) 推荐(0)
摘要: 看群友讨论顺便记录下。 阅读全文
posted @ 2018-10-23 17:22 公众号python学习开发 阅读(913) 评论(0) 推荐(0)
摘要: 1.screen x 进入 2.ctrl+a+n 下一个 3.ctrl+a+p 上一个任务 4.ctrl+a+d 退出 5.ctrl+c 结束任务 其他 screen ls 所有任务 screen r 编号 阅读全文
posted @ 2018-10-23 14:56 公众号python学习开发 阅读(717) 评论(0) 推荐(0)
摘要: ``` from database import db db_list = ["table1", "table2", "table3", "table4"] for item in db_list: collection = db[item] collection.create_index([("phone", 1)]) print(list(collection.inde... 阅读全文
posted @ 2018-10-23 14:39 公众号python学习开发 阅读(1612) 评论(0) 推荐(0)
摘要: def save_data(ok_ps): ns = [] for ok in ok_ps: ok['last_use_time'] = 0 ok['protocol'] = 0 # 协议类型 0:http ok['is_own'] = 1 ok['is_ok'] = 0 # 可用 ok['date 阅读全文
posted @ 2018-10-19 09:55 公众号python学习开发 阅读(1372) 评论(1) 推荐(0)
摘要: v2ex同步更新:https://www.v2ex.com/t/500081 微信公众号:python学习开发 分析源码,看大神的代码是一种学习的好方法,让我从中学到很多以前不知道的知识,这次打算从大家熟悉的Kenneth Reitz大神的request入手,对该模块应用的一些技巧进行一次探究。 从 阅读全文
posted @ 2018-10-18 20:15 公众号python学习开发 阅读(2213) 评论(0) 推荐(1)
摘要: 群里大佬提供 求解过程 上式的j=1应该是j=0 详解梯度下降法求解线性模型参数 https://blog.csdn.net/ybdesire/article/details/52895274 梯度下降法的数学推导 https://blog.csdn.net/zengdong_1991/articl 阅读全文
posted @ 2018-10-18 14:44 公众号python学习开发 阅读(1021) 评论(0) 推荐(0)
上一页 1 ··· 64 65 66 67 68 69 70 71 72 ··· 125 下一页