파이썬 Python – OS.PATH 기초 정리

파이썬 Python – OS.PATH 기초 정리 >>> sys.modules.keys()현재 세션, 또는 프로그램안에서 사용되는 모든 모듈을 보여준다. >>> sys.getrefcount(object) >>> sys.exc_info()returns a tuple with the latest exception’s type, value, and traceback object >>> try:…     raise IndexError… except:…     print(sys.exc_info())(<class ‘IndexError’>, IndexError(), <traceback object at 0x00BAE8C8>) 첫번째, 두번째는 directly print 해도 괜찮고세번째는 traceback module 을 사용해서 처리한다.>>> import traceback, […]