flask: 使用shell执行代码中的函数
一,启动shell
$ source venv/bin/activate
((venv) ) [lhdop@blog enterprise_library_api]$ flask shell
二,执行函数
>>> from app.jobs.util import import_china_city
>>> import_china_city()
三,退出shell
>>> exit()
((venv) ) [lhdop@blog enterprise_library_api]$
浙公网安备 33010602011771号