Найти - Пользователи
Полная версия: _i1 - _i90 ? What is it?
Начало » Python для .Net » _i1 - _i90 ? What is it?
1
romankrv
Hi всем!
У меня вопрос
в ipython пишу команду интроспекции dir() и получаю ряд загадочных объектов-строк юникода
_i1 - _i90

значения которых содержат подобно этому “ u'dir()\n' ”

Хотелось узнать назначения и применение этих переменных.

Спасибо.
Ferroman
Это скрытые перемнные самого iPython _* содержат историю вывода .
These variables aren't really that ‘hidden’: In and Out are always
there for you, and hopefully the names of the prompts hint at their existence.
The magic stuff is that _N==Out, and _iN==In, and _,__ and ___ hold
always Out, Out and Out. When using ipython for scientific work,
this kind of caching is incredibly useful.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB