본문 바로가기

Computer/Programing

Python data structure 파이썬 자료구조

자료구조는 리스트list, 튜플tuple, 사전dict, 집합set 이 있다



추가

list.append('a')


list.update({'a':123})

list.update({'a':'abc'})

list.update({123,'abc'})

update 이중 실행시 마지막 업데이트값 참조



삭제

del list[0]



구조 확인

print type(a)

'Computer > Programing' 카테고리의 다른 글

MiTemp2 Read and write to SQL  (0) 2021.08.11
VS CODE  (0) 2020.03.01
Send image file to Telegram  (0) 2019.03.18
Clien login python 클리앙 로그인 파이썬  (0) 2019.02.07
Python load json from web  (0) 2019.02.07
Telegram URL 이용하여 문자 보내는법  (0) 2019.02.07
Python 실행값을 PHP로 불러오기  (0) 2019.02.07
Parsing - Python  (0) 2019.02.07