python15 VS code - 명령어 부분 실행 shift + enter 2025. 3. 23. __name__ __name__ : 현재 모듈의 이름을 담고 있는 내장 변수모듈이 직접 실행되었는지 여부를 판단할 때 사용. [ test.py ]print("파일명 : test.py")print("__name__ :", __name__) [ main.py ]import testprint("파일명 : main.py")print("__name__ :", __name__) 1. 모듈은 직접 실행될 경우 > "__main__"이 할당$ python test.py 2. 다른 모듈에서 import될 경우 > 해당 모듈의 이름(파일명)이 할당$ python main.py 2025. 3. 2. jupyter lab - git 롤백 기능 [ Discard changes ] Are you sure you want to permanently discard changes to the following files? This action cannot be undone다음 파일의 변경사항을 영구적으로 삭제하시겠습니까? 이 작업은 취소할 수 없습니다. >>> discard 클릭시, 코드는 마지막 커밋 시점으로 돌아가며, 최근에 변경한 내용들은 사라진다. [ revert change introduced by this commit ]이 커밋으로 인해 발생한 변경 사항을 되돌립니다. Revert Changes These changes will be reverted. Only commit if you're sure you're okay losing thes.. 2025. 2. 9. 이전 1 2 3 다음