【发布时间】:2020-03-10 18:32:47
【问题描述】:
我遇到了一个 Django 教程,讲师正在运行 python manage.py shell。
这会产生:
(env) MBP:Project user$ python3 manage.py shell
Python 3.7.6 (default, Jan 8 2020, 13:42:34)
[Clang 4.0.1 (tags/RELEASE_401/final)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
几个问题:
-
shell在python manage.py shell中有什么作用? - 上面的
(InteractiveConsole)是什么意思?当我在没有shell的情况下运行python时,我看不到这一点。我用 Google 搜索了 InteractiveConsole,但无济于事。 -
manage.py这里的“正在完成”是什么?是“运行”还是“服务”?
【问题讨论】: