我有两个Python脚本:
print("hi")
a = input()
print(a)
我可以用django shell成功运行第一个
python manage.py shell < script.py
第二个错误是:
File "<string>", line 1, in <module>
EOFError: EOF when reading a line
为什么?如何向manage.py shell提供接受输入的脚本?
这不会在PyCharm终端中发生,而只在Linux CLI上发生。