环境准备
安装flask
pip install flask
项目结构如图
1.新建配置文件conf.py
#!/usr/bin/python
# -*- coding:utf-8 -*-
import pymysql,os
# ============================ Global parameter ==============================
proDir = os.path.split(os.path.realpath(__file__))[0]
print(proDir)
xlsPath = os.path.join(proDir, 'testFile')
#============================ DB Config =====================&#