![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
全python
力量型搬砖工人
专注python领域
展开
-
计算质数函数
比如prime(30, max_num=1061)原创 2022-11-22 14:39:23 · 91 阅读 · 1 评论 -
机器学习判断中文情感
当verbose参数>=2时,显示运行细节。考虑到计算量,可以把cv设为5。原创 2022-11-22 14:18:56 · 415 阅读 · 0 评论 -
教你十行代码获取福布斯排行榜前350的富豪
目标网址:https://www.phb123.com/renwu/fuhao/shishi_1.html首先,创建临时表格:df=pd.DataFrame()从这个网页可以发现,前350名就在1到15页里面就可以写成for i in range(1,16): url="https://www.phb123.com/renwu/fuhao/shishi_%s.html"%i然后再把每一个网址的表格加进去就可以了:for html in urls:原创 2022-05-25 00:30:11 · 637 阅读 · 0 评论