如何在ipython中创建多行输入?

问题描述 投票:0回答:1

我正在阅读Jake VanderPlas撰写的《 Python数据科学手册》。在第一章中,说明了ipython中的多行输入:

multiLineInput

有人可以告诉我,该怎么做?我知道如何在Jupyter Notebook中执行之前编写一个块,但是在ipython shell中我不知道该怎么做。感谢您的帮助!

input ipython multiline
1个回答
0
投票

在行尾使用'shift'+'Enter'以避免执行并继续输入代码。完成编写代码块后,请按“ Enter” Have a look to the following picture。如果由于某种原因移位不起作用,请改按Ctrl + Enter。我希望这会有所帮助,祝你好运。

© www.soinside.com 2019 - 2024. All rights reserved.