Ai
4 Star 3 Fork 3

校园小程序开发/小程序Python后端

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
database.py 397 Bytes
一键复制 编辑 原始数据 按行查看 历史
TaurusXin 提交于 2021-04-15 19:52 +08:00 . feat: global mode
from flask_sqlalchemy import SQLAlchemy
import redis
db = SQLAlchemy()
# R = redis.StrictRedis(host='43.128.26.205', port=6379, password='rhyland', db=0, decode_responses=True)
R = redis.StrictRedis(host='127.0.0.1', port=6379, password='rhyland', db=0, decode_responses=True)
global_mode = 1
with open('admin/mode.txt', 'r', encoding='utf-8')as f:
global_mode = int(f.read())
f.close()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/shark-miniprogram/shark-miniprogram-python-backend.git
git@gitee.com:shark-miniprogram/shark-miniprogram-python-backend.git
shark-miniprogram
shark-miniprogram-python-backend
小程序Python后端
master

搜索帮助