Raspberry Pi_Kor_20.2.4 script에서의 연산

20.2.4 script에서의 연산

20.2.4.1 대입 연산(assignment operation)

script에서 변수를 새로 정의하거나, 변수에 어떤 값을 지정하는 것을 대입(assignment)라고 하는데, 이럴 때 사용하는 연산자가 “=”이다. 이런 방식을 assignment mode라고 하며, 기본적인 형식은 다음과 같다.

Raspberry Pi_Eng_20.2.4 Operations in Script

20.2.4 Operations in Script

20.2.4.1 Assignment Operation

When we define a new variable or we assign a value to a variable in a script, it is called an assignment. The operator used in this case is “=”. This is called assignment mode, and the basic format is as follows.