exec()

차노·2023년 8월 26일
0

JS

목록 보기
90/96

개념

In various programming languages, including Python and JavaScript, exec() is a built-in function that allows you do dynamically execute code that is stored in a string or a code object.

파이썬, 자바스크립트를 포함하여, 다양한 프로그래밍 언어에서, exec()는 문자열이나 객체에 저장되어 있는 코드를 동적으로 실행시켜주는 내장형 함수이다.

It's powerful but potentially risky function because it can execute arbitrary code, and its usage should be carefully considered, especailly when dealing with user input.

강력하지만 임시 코드여서 잠재적 위험을 가지고 있으며, 특히 사용자 input을 다룰 때는 코드 사용을 신중하게 고려해야 한다.

0개의 댓글