flask - 很简单的几句python代码,为什么直接Process finished with exit code 2呢?
大家讲道理
大家讲道理 2017-04-17 14:38:37
0
3
975

直接运行就这样了

前几天还可以的..不知道怎么突然就不行了.

求熟手帮忙看看原因.

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(3)
小葫芦

flask-script To use this plug-in, enter

in the command line
python hello.py runserver

Use the pycharm function of run and just execute python hello.py without adding the runserver parameter. Therefore the script is executed without parameters.

The solution is to use the drop-down arrow of the run option, select the edit configure option, and then add it in script parameters

刘奇

No parameters are added when running

刘奇

Already in the prompt

usage: hello.py [-?] {runserver, shell} ...

Try it

python.exe D:\...\hello.py runserver

Or change the last line of code to

app.run()
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!