码迷,mamicode.com
首页 >  
搜索关键字:python实现    ( 3105个结果)
python常用工具组件
1、JS 正则 test - 判断字符串是否符合规定的正则 rep = /\d+/; rep.test("asdfoiklfasdf89asdfasdf") # true rep = /^\d+$/; rep.test("asdfoiklfasdf89asdfasdf") # true exec - ...
分类:编程语言   时间:2018-04-27 13:53:18    阅读次数:171
python实现图灵机器人帮你回复微信好友消息
''' Created on 2018年4月26日 @author: cvv54 ''' #引入itchat包获取微信消息 import itchat from itchat.content import * import hashlib import requests #注册帐号http://ww... ...
分类:微信   时间:2018-04-27 12:12:55    阅读次数:637
python实现发送文本邮件
简单实现了python发送文本邮件 ...
分类:编程语言   时间:2018-04-27 02:44:35    阅读次数:196
python使用logging模块实现日志写入
python实现的logging写入日志的功能。logging模块还是挺好用的 ...
分类:编程语言   时间:2018-04-27 02:33:46    阅读次数:214
python实现通过企业微信发送消息
实现了通过企业微信发送消息,平时用于运维的告警还是不错的,相对于邮件来说,实时性更高,不过就是企业微信比较麻烦,此处不做过多解释。 企业微信api的详细请看:http://work.weixin.qq.com/api/doc#10167 话不多说,直接代码 ...
分类:微信   时间:2018-04-27 02:11:35    阅读次数:297
2018-4-26 Python实现对服务进程的监控,告警给钉钉机器人及重启任务
最近看到一个钉钉软件机器人,觉得非常好,比起邮件、微信告警,舒服多了,特献上代码内容。 [root@k8s-master ~]# nohup python test.py & # 可以参考下篇文章,python进程构成一个systemd服务后台运行,每5秒监控更佳 钉钉软件结果图片 ...
分类:编程语言   时间:2018-04-26 23:25:57    阅读次数:316
使用Python实现批量发送邮件
需求: 给定收件人列表,使用指定的发件人给所有收件人逐个发送邮件,并可以指定邮件内容与附件。 Python代码: 收件人列表示.txt: 邮件内容.txt ...
分类:编程语言   时间:2018-04-24 20:20:10    阅读次数:285
selenium:chromedriver与chrome版本的对应关系
今天想用Python实现一个自动刷新网页的脚本,需要用到selenium。 因为刚开始没有指定chromedriver,所以报错: 然后我去下载chromedriver,随便下了一个版本的,结果又报错: 之后继续百度寻找答案,才发现: 再使用selenium打开chrome浏览器的时候,需要用chr ...
分类:其他好文   时间:2018-04-23 16:35:41    阅读次数:3542
一文读懂遗传算法工作原理(附Python实现)
选自AnalyticsVidhya 参与:晏奇、黄小天 近日,Analyticsvidhya 上发表了一篇题为《Introduction to Genetic Algorithm & their application in data science》的文章,作者 Shubham Jain 现身说法 ...
分类:编程语言   时间:2018-04-23 15:53:18    阅读次数:198
常用algorithm及其Python实现
冒泡排序 选择排序 快速排序 def partition(li, left, right): randi = random.randint(left, right) li[randi], li[left] = li[left], li[randi] tmp = li[left] while left ...
分类:编程语言   时间:2018-04-22 21:58:27    阅读次数:316
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!