Loading

摘要: 问题描述:当在python的flask中定义全局变量之后,当其他模块修改全局变量,flask中的api运行时读取的全局变量值还是定义时的初始值。 在https://stackoverflow.com/questions/23457658/flask-global-variables有人遇到了同样的问 阅读全文
posted @ 2022-04-11 18:12 InspirationPlace 阅读(1150) 评论(0) 推荐(0)
摘要: 目前VPS商家提供的Debian 10系统基本上都是4.19.x.x的内核版本,站长本着用新不用旧的原则,在初次部署环境的时候,总是忍不住将系统内核版本升级到比较新的版本。 1、查看系统内核版本 uname -r 站长用于演示的这台Debian 10系统的VPS原始内核版本为:4.19.0-5-am 阅读全文
posted @ 2022-04-11 15:58 InspirationPlace 阅读(1136) 评论(0) 推荐(0)
摘要: import time import threading signal = 0 condition_lock = threading.Condition() def signal_add(): global signal while(True): time.sleep(1) condition_lo 阅读全文
posted @ 2022-04-07 18:03 InspirationPlace 阅读(71) 评论(0) 推荐(0)
摘要: import json from influxdb_client.client.flux_table import FluxStructureEncoder output = json.dumps(tables, cls=FluxStructureEncoder, indent=2) print(o 阅读全文
posted @ 2022-03-01 16:05 InspirationPlace 阅读(496) 评论(0) 推荐(0)