上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 106 下一页
摘要: python 定时任务APScheduler 使用介绍 介绍: APScheduler的全称是Advanced Python Scheduler。它是一个轻量级的 Python 定时任务调度框架。APScheduler 支持三种调度任务:固定时间间隔,固定时间点(日期),Linux 下的 Cront 阅读全文
posted @ 2020-09-27 16:14 小学弟- 阅读(1883) 评论(0) 推荐(0)
摘要: APScheduler 1 简介 APScheduler的全称是Advanced Python Scheduler。它是一个轻量级的 Python 定时任务调度框架。APScheduler 支持三种调度任务:固定时间间隔,固定时间点(日期),Linux 下的 Crontab 命令。同时,它还支持异步 阅读全文
posted @ 2020-09-27 16:09 小学弟- 阅读(204) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <script type="text/javascript"> function post(){ var postD 阅读全文
posted @ 2020-09-27 15:21 小学弟- 阅读(983) 评论(0) 推荐(0)
摘要: uwsgi启动Django应用 uWSGI是一个Web服务器,它实现了WSGI协议、uwsgi、http等协议。 WSGI / uwsgi / uWSGI 三者区别: WSGI是一种通信协议,Flask,webpy,Django、CherryPy等等都自带WSGI,不过性能都不好。 uwsgi同WS 阅读全文
posted @ 2020-09-23 16:37 小学弟- 阅读(1558) 评论(0) 推荐(0)
摘要: 使用Python操作InfluxDB时序数据库 安装python包 influxdb,这里我安装的是5.3.0版本 pip install influxdb==5.3.0 使用 from influxdb import InfluxDBClient conn_db=InfluxDBClient('1 阅读全文
posted @ 2020-09-16 09:30 小学弟- 阅读(1797) 评论(0) 推荐(0)
摘要: with LogMysqlApeT(db) as m_client: condition = "select * from {} where deleted=0 ".format(table) condition_count = "select count(id) as numbers from { 阅读全文
posted @ 2020-09-15 11:37 小学弟- 阅读(142) 评论(0) 推荐(0)
摘要: 可以选择接受一个无参的可调用对象以及一个哨兵(结束)作为输入。当已这种方式使用时,iter()会创建i一个迭代器,然后重复调用用户提供的可调用对象,直到返回哨兵的值为止。 import sys with open('publish.py', encoding='utf-8') as f: for c 阅读全文
posted @ 2020-08-25 13:46 小学弟- 阅读(149) 评论(0) 推荐(0)
摘要: Python魔法方法总结及注意事项 1、何为魔法方法: Python中,一定要区分开函数和方法的含义; 1.函数:类外部定义的,跟类没有直接关系的;形式: def func(*argv): 2.方法:class内部定义的函数(对象的方法也可以认为是属性);分为两种: ① python自动产生的(魔法 阅读全文
posted @ 2020-08-18 16:14 小学弟- 阅读(258) 评论(0) 推荐(0)
摘要: Python魔法方法之属性访问 ( __getattr__, __getattribute__, __setattr__, __delattr__ ) 通常情况下,我们在访问类或者实例对象的时候,会牵扯到一些属性访问的魔法方法,主要包括: ① __getattr__(self, name): 访问不 阅读全文
posted @ 2020-08-18 16:13 小学弟- 阅读(253) 评论(0) 推荐(0)
摘要: Python描述符 (descriptor) 详解 1、什么是描述符? python描述符是一个“绑定行为”的对象属性,在描述符协议中,它可以通过方法重写属性的访问。这些方法有 __get__(), __set__(), 和__delete__()。如果这些方法中的任何一个被定义在一个对象中,这个对 阅读全文
posted @ 2020-08-18 16:11 小学弟- 阅读(1000) 评论(0) 推荐(1)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 106 下一页