본문 바로가기
Python Basic

Emulating Python's interactive interpreter

by fiasco 2022. 11. 8.

※ 코드 실행 중 대화형 인터프리터 호출

# Emulating Python's interactive interpreter

'''
# python 에뮬레이트
import code
code.interact()

'''
'''
# Example for IPython 
import IPython 
IPython.embed()

'''
'''
# Example for bpython 
import bpython 
bpython.embed()
'''
'''
# Example for ptpython
from ptpython.repl import embed 
embed(globals(), locals())
'''

 

'Python Basic' 카테고리의 다른 글

Programming productivity tools  (0) 2022.11.08
Debugging  (0) 2022.11.08
PYTHONSTARTUP 환경변수  (0) 2022.11.08
os 모듈  (0) 2022.11.08
sys 모듈  (0) 2022.11.08