-
[Python] map 함수 정리하기
map함수 정의 map함수는 리스트의 원소들에게 각각 함수를 적용시키는 함수입니다. ※map 함수는 리스트 뿐만 아니라 딕셔너리, 튜플 등 반복가능한 개체를 인자로 받을 수 있습니다. map 함수 용도 리스트 원소들에 각각 함수를 적용시켜 리스트를 변형시킬 때 사용합니다. map 함수를 이용하면 for문을 이용해 리스트에 함수를 적용할 때 보다 편리합니다. 숫자로 이루어진 문자열을 정수형 리스트로 바꿀 때 사용합니다. map 함수 사용법 map(“함수”,”리스트”) map 함수 예시 예시1: 리스트에 map함수 적용 list1= [1,2,3,4,5,6] def add3(n): ... Read More
-
[Python] isdigit 함수 정리하기
isdigit함수 정의 isdigit함수는 어떤 문자열이 숫자만으로 이루어져 있는지 판별하는 함수입니다. isdigit 함수 용도 isdigit함수는 문자열이 숫자로만 이루어져있는지 판별할 때 사용합니다. 또한 문자열 안에 있는 숫자를 추출할 때에도 사용합니다. isdigit 함수 사용법 “문자열”.isdigit() str.isdigit(“문자열”) isdigit 함수 예시 예시1: 문자열이 숫자만으로 이루어져 있는지 판별 str1="apple" ##문자로만 이루어진 문자열 str2="app52le" ##문자와 숫자가 혼합되어있는 문자열 str3="350" ## 숫자만으로 이루어진 문자열... Read More
-
[Python] filter 함수 정리하기
filter함수 정의 filter 함수는 입력된 리스트 에서 함수 조건에 맞는 원소들을 추출하는 함수입니다. ※filter 함수는 리스트 뿐만 아니라 딕셔너리, 튜플 등 반복가능한 개체를 인자로 받을 수 있습니다. filter 함수 용도 filter함수는 조건에 맞는 데이터를 뽑아낼 때 사용합니다. filter 함수 사용법 : filter(함수,리스트) fliter 함수는 두번째 인자로 들어온 리스트 중에서 첫번째 인자로 들어온 함수에 포함되는 원소들을 추출합니다. ※filter 함수 정리: 첫번째 인자로 들어온 함수가 두번째 인자로 들어온 데이터를 필터링 filter 함수 예시 fliter함수를 ... Read More
-
[Groom IDE] Github 블로그 만들기(2)
1.Jekyll 테마 설치 Jekyll 사이트 중에서 추천할만한 사이트 몇 개를 가져왔습니다. http://jekyllthemes.org https://jekyllthemes.io/free 위 사이트에서 마음에 드는 테마를 하나 선택합니다. 저는 http://jekyllthemes.org/ 에서 Yet Another Theme 로 선택했습니다. 마음에 드는 테마를 하나 선택합니다. HomePage로 들어갑니다. 오른 쪽 위 Code 버튼 누르고 Download Zip 선택합니다. 다시 전에 만들었던 구름IDE컨테이너로 들어갑니다. 구름IDE 왼쪽 위 메뉴에서 ‘파일’ ... Read More
-
[Groom IDE] Github 블로그 만들기(1)
1. Github 페이지 생성 새로운 Github repository 를 생성합니다. Repository 이름은 username.github.i 로 합니다. 제 Github 계정이름은 sms7950이므로 sms7950.github.io로 정했습니다. Public , Add a README file 선택 후 Create repository 선택. 여기까지 되면 완성입니다. 2.구름IDE 컨테이너 생성 구름IDE에 들어갑니다. +새 컨테이너 클릭(오른쪽 위 버튼 쭉 내려가서 탬플릿 → Github 선택 → Github 계정 연동 계정 연동 후 아까 만들었던 repository를... Read More