def get_banner():
from app import app
color_tmpl = '\x1b[{}m{}\x1b[0m'
return color_tmpl.format(
*(32, 'Development shell, do whatever you want.')
if app.debug else (
35, 'Production shell, use it carefully!'))
文章目录