Skip to main content
Skip table of contents

변수명

기능

  • 자료의 값을 나타내기 위해 사용하며 문자, 숫자, 밑줄(_)로 구성할 수 있습니다. 문자, 숫자, 밑줄(_)로 구성합니다(첫 글자는 숫자 불가).
  • 대소문자를 구분합니다.
  • 변수명을 예약어나 DRL 명령어 이름과 동일하게 사용하면 인터프리터에 치명적인 에러가 발생합니다.
    이를 피하기 위해서 가급적 “var_” 이란 prefix를 사용하여 변수명을 사용하시기 바랍니다.


주의

하기 예약어들을 변수명이나 함수명으로 절대로 사용하지 마십시요.

and

assert

break

class

continue

def

del

elif

else

except

exec

finally

for

from

global

if

import

in

is

lambda

list

not

open

or

pass

print

raise

return

try

while

with

yield

select

 

 

예제

PY
friend = 10
Friend = 1
_myFriend = None

Pass = 10 # Syntax error
movej = 0 # movej는 DRL 명령어 이름으로 변수로 사용하면 안됩니다
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.