2023.04.20
List Tuple Set Dictionary 표기 [ ] ( ) { } {키:값} 변환함수 x=list() x=tuple() x=set() x=dict() 생성 x=[v1,...,vN] x=v1,...,vN x={ } x= {k1:v1,...,kN:vN} 값의순서 있다 있다 없다 없다 인덱스 사용 Yes Yes No No 추가/수정/삭제 Yes No Yes Yes for i in List : for i in tuple : for i in Set : for x,y in Dict.items() : [list] list[i] = value → list 수정하는 법 list = String : 인덱스를 사용 list[strat:end+1] lValue[3,'hello',3.14,true,3-5i] : 데이터를..
Python
2023. 4. 20. 17:29