In [num]在jupyter笔记本中意味着什么?

时间:2018-02-12 00:03:47

标签: python jupyter-notebook

我知道In[*]表示内核正在运行

enter image description here

In[93]是什么意思?

enter image description here

这是指执行单元格的总秒数还是行号?

1 个答案:

答案 0 :(得分:5)

它实际上是一个行号。

In是您在会话期间输入的所有输入的数组,Out是来自相应输入的结果的字典。您可以使用它们来引用以前的输入和结果;例如:

 In[1]:  0x7b
Out[1]:  123

 In[2]:  0x1c8
Out[2]:  456

 In[3]:  Out[1] + Out[2]
Out[3]:  579

 In[4]:  In
Out[4]:  ['', '0x7b', '0x1c8', 'Out[1] + Out[2]', 'In']

 In[5]:  Out
Out[5]:  {1: 123,
          2: 456,
          3: 579,
          4: ['', '0x7b', '0x1c8', 'Out[1] + Out[2]', 'In', 'Out']}
相关问题