파이썬 리스트의 문자열을 int 형태로 변환
list_a = ['1', '2', '3', '4'] -> list_a = [1, 2, 3, 4] 로 바꾸고 싶을 때,
python 3. list_a = list(map(int, list_a))
를 해주면 된다.
혹은
list_a = [int (i) for i in list_a]
list_a = ['1', '2', '3', '4'] -> list_a = [1, 2, 3, 4] 로 바꾸고 싶을 때,
python 3. list_a = list(map(int, list_a))
를 해주면 된다.
혹은
list_a = [int (i) for i in list_a]
CCS 메뉴 스타일 링크
파이썬 오류 ModuleNotFoundError: No module named 'html.entities'; 'html' is not a package
파이썬 os 모듈, 파일(file)과 디렉토리(directory)활용
파이썬 FTP 업로드/다운로드 하기
파이썬 find, select 사용법
윈도우 10 절전모드(슬립모드) 예약해제 방법
파이썬 리스트의 문자열을 int 형태로 변환
파이썬 변수값에서 숫자만 추출하기
파이썬 최대값 두번째 큰값 세번째 큰값 구하기
html testing
http://urin79.com
우린친구블로그