随笔分类 -  Python笔记

python相关笔记,没有框架内容
摘要:python,pyinotify 阅读全文
posted @ 2022-05-22 23:34 Linuxbugs 阅读(224) 评论(0) 推荐(0)
摘要:import paramiko,time def verification_ssh(host, username, passwd, port, root_pwd, cmd): s=paramiko.SSHClient() s.set_missing_host_key_policy(paramiko. 阅读全文
posted @ 2022-03-02 23:28 Linuxbugs 阅读(809) 评论(0) 推荐(0)
摘要:基于python发送邮件 阅读全文
posted @ 2022-01-03 22:46 Linuxbugs 阅读(112) 评论(0) 推荐(0)
摘要:基于python的logging模块的基本使用 阅读全文
posted @ 2021-12-28 22:30 Linuxbugs 阅读(72) 评论(0) 推荐(0)
摘要:输入一个以逗号分隔的整数的字符串,如:"-4,2,1,4,2,-1,2" 求连续数字的最大和,上面字符串最大连续整数和为:2+1+4+2=9 代码实现: from functools import reduce import time # 装饰器,检测运行时间 def time_check(func 阅读全文
posted @ 2020-10-20 23:22 Linuxbugs 阅读(251) 评论(0) 推荐(0)
摘要:转载于https://zhuanlan.zhihu.com/p/30396391 内容有删改 老婆经常喜欢翻看我订阅的技术杂志,她总能从她的视角提出很多有趣的问题。 一个悠闲的周日下午,她午觉醒来,又习惯性的抓起这个月的杂志,饶有兴趣地看了起来。 果不其然,看着看着,她又对我发难了,“Restful 阅读全文
posted @ 2020-07-01 16:17 Linuxbugs 阅读(128) 评论(0) 推荐(0)
摘要:import datetime import pymysql import pymysql.cursors tables_schdule=["talbe1","table2","table3","table4","table5"] x = datetime.date.today().replace(day=1) y = datetime.timedelta(days=1) last_month = 阅读全文
posted @ 2019-09-03 09:20 Linuxbugs 阅读(346) 评论(0) 推荐(0)