«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

Code IT

Python - list, set, tuple, dict 본문

Python & Django

Python - list, set, tuple, dict

Codit 2019. 1. 30. 22:57
# list, set, dict는 복합적으로 사용할수 있다.
# dict가 list를 가지거나, 반대로 list가 dict를 가질 수도 있다.
# 당연하겠지만, set도 가질 수 있고, set 내에 set을 포함한 list, dict도 가질 수 있다.

person = {
	"age": 40, 
	"job": ["Developer", "Proffessor", "Manager"],
	"language": ("Java", "Python", "Node.js", "React", "Angular")}
	
print(person)

'Python & Django' 카테고리의 다른 글

Python - bool  (0) 2019.01.30
Python - 객체복사 (얕은 복사/깊은 복사)  (0) 2019.01.30
Python - dictionary (dict)  (0) 2019.01.30
Python - tuple  (0) 2019.01.30
Python - set  (0) 2019.01.30
Comments