BackEnd/Python

02. 자료형

Houkibosi 2015. 8. 12. 21:07

1. 변수 명

- 변수 명은 문자, 숫자, 밑줄(_)로 구성 가능. (숫자는 처음에 불가)

- 대소문자 구별.

 

* 예약어

and, as, assert, break, class, continue, def, del, elif, else, except, is,

finally, for, from, global, if, import, in, is, lambda, nonlocal, not, or,

pass, raise, return, try, while, with, yield

 

* 치환연산자(=)

>>> (a,b) = (1,2)   튜플 사용

>>> [c,d] = [3,4]  리스트 사용

>>> e = f = g = 1