함수가있는 파이썬 모듈이 있습니다.
def do_stuff(param1 = 'a'):
if type(param1) == int:
# enter python interpreter here
do_something()
else:
do_something_else()
주석이있는 명령 줄 인터프리터로 이동하는 방법이 있습니까? 그래서 파이썬에서 다음을 실행하면 :
>>> import my_module
>>> do_stuff(1)
내가 의견이있는 곳의 범위와 맥락에서 다음 메시지를 do_stuff()받습니까?