简体   繁体   English

Jupyter-Notebook 中的变量输出

[英]Variable output in Jupyter-Notebook

In already prepared Jupyter notebook I have the next simple example:在已经准备好的 Jupyter 笔记本中,我有下一个简单的例子:

IN: a = np.array([0, 1, 2, 3]) a OUT: array([0, 1, 2, 3])

But when I'm trying to copy&execute it in the PyCharm editor I don't see anything(code run without problems).但是当我尝试在 PyCharm 编辑器中复制和执行它时,我什么也没看到(代码运行没有问题)。 Is it some kind of special output in Jupyter?它是 Jupyter 中的某种特殊输出吗?

a = np.array([0, 1, 2, 3])
print(a)

use print function to show output in pycharm使用打印功能在pycharm中显示输出

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM