In [47]:
a, b, c = 1, 2, 3

In [48]:
print(a + b + c)


6

In [49]:
a?

In [50]:
b = {'n1':1, 'n2':2, 'n3':3}

In [51]:
b?

In [52]:
c = dict(n1=1,n2=2)

In [53]:
c


Out[53]:
{'n1': 1, 'n2': 2}

In [54]:
c?

In [55]:
a = '\a'

In [19]:
a?

In [20]:
a?

In [21]:
help(a)


No Python documentation found for '\x07'.
Use help() to get the interactive help utility.
Use help(str) for help on the str class.


In [56]:
def my_add(a, b):
    """
    두수를 더한다.
    
    입력
    -----
    x: 첫 번째 수
    y: 두 번째 수
    
    출력
    -----
    out: x + y의 계산 결과    
    """
    out = a + b
    return out

In [23]:
my_add?

In [24]:
my_add??

In [25]:
??my_add

In [26]:
print??

In [35]:
%quickref

In [28]:
%run script.py


hello
나는 파이썬 입니다.

In [29]:
%run script.py -t


hello
나는 파이썬 입니다.

In [30]:
%run -t script.py


hello
나는 파이썬 입니다.

IPython CPU timings (estimated):
  User   :       0.00 s.
  System :       0.00 s.
Wall time:       0.00 s.

In [34]:
%run -p script.py


hello
나는 파이썬 입니다.
 

In [33]:
%reset -f

In [36]:
class Ab:
    """
    Test!!
    """
    
    def __init__(self):
        pass

In [40]:
%pdoc Ab

In [38]:
a = Ab()

In [41]:
%pdoc a

In [57]:
%who


Ab	 a	 b	 c	 my_add	 

In [63]:
%who a


No variables match your requested type.

In [64]:
%who Ab


No variables match your requested type.

In [60]:
%whos


Variable   Type        Data/Info
--------------------------------
Ab         type        <class '__main__.Ab'>
a          str         
b          dict        n=3
c          dict        n=2
my_add     function    <function my_add at 0x10411d8c8>

In [61]:
%who_ls


Out[61]:
['Ab', 'a', 'b', 'c', 'my_add']

In [ ]: