风花雪月 风花雪月
4年前
python-随机函数
random.sample()可以从指定的序列中,随机的截取指定长度的片断,不作原地修改,不重复。random.random()函数是这个模块中最常用的方法了,它会生成一个随机的浮点数,范围是在0.01.0之间。random.uniform()正好弥补了上面函数的不足,它可以设定浮点数的范围,一个是上限,一个是下限。random.randint()随机生一个
Stella981 Stella981
4年前
Python爬虫代理池
爬虫代理IP池在公司做分布式深网爬虫,搭建了一套稳定的代理池服务,为上千个爬虫提供有效的代理,保证各个爬虫拿到的都是对应网站有效的代理IP,从而保证爬虫快速稳定的运行,当然在公司做的东西不能开源出来。不过呢,闲暇时间手痒,所以就想利用一些免费的资源搞一个简单的代理池服务。1、问题代理IP从何而来?
Stella981 Stella981
4年前
CentOS安装PyQT5
CentOS安装PyQT5.11yuminstallqt5qtbasedevelpip3installpyqt5python3c"fromPyQt5importQtWidgets"CentOS安装PyQT5.6一、安装CentOS7
Easter79 Easter79
4年前
The Zen of Python, by Tim Peters
TheZenofPython,byTimPetersBeautifulisbetterthanugly.Explicitisbetterthanimplicit.Simpleisbetterthancomplex.Complexisbetterthancomplicated.Flat
Stella981 Stella981
4年前
Python 可视化神器:Plotly Express 入门之路
本文链接:https://blog.csdn.net/leadingsci/article/details/89762892参考:\Python可视化神器:PlotlyExpress入门之路\(http://liyangbit.com/pythonvisualization/PlotlyExpressintroductioncn/%E5
Stella981 Stella981
4年前
Flask中无法在其他函数中查询Sqlachemy的解决办法
报错信息部分截取:File"D:\python3.5\lib\sitepackages\flask_sqlalchemy\__init__.py",line912,inget_app'Noapplicationfound.Eitherworkinsideaviewfunction
Stella981 Stella981
4年前
Python3 利用asynico协程系统构建生产消费模型
今天研究了下python3的新特性asynico,试了试aiohttp协程效果,单核QPS在500~600之间,性能还可以。importaiohttpimportasyncioimporthashlibimporttimefromasyncioimportQueue
Stella981 Stella981
4年前
Python远程获取MD5校验码并在web上显示
一、编写python脚本,远程执行命令获取MD5校验码,脚本放到CGI路径下!/usr/bin/envpythoncoding:utf8"""ThisrunsacommandonaremotehostusingSSH.Atthe
Stella981 Stella981
4年前
Python3.x:打包为exe执行文件(window系统)
Python3.x:打包为exe执行文件(window系统)window系统下发布:一、安装pyinstaller(PyInstaller3.3.1)  cmd安装命令:pipinstallpyinstaller二、pyt
Wesley13 Wesley13
4年前
0基础能学Python编程么?应该怎么学?
!(https://oscimg.oschina.net/oscnet/1e979b83e61d4567959a645c8993372c.gif)点击蓝字“python教程”关注我们哟!