-
[22.11.16] TILTIL 2022. 12. 19. 21:05
오늘 배운 것
python
변수 replace(변경할대상, 변경할값)
a = [1,2,3] a.replace(2, 5)
이 경우 a에 있는 2를 5로 바꿔준다.
() 안에 변수도 대입 가능하다.'TIL' 카테고리의 다른 글
[22.11.18] TIL (0) 2022.12.19 [22.11.17] TIL (0) 2022.12.19 [22.11.15] TIL (0) 2022.12.19 [22.11.14] TIL (0) 2022.12.19 [22.11.11] TIL (0) 2022.12.19