일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 인스타그램
- geopandas
- plotly dash
- 플라스크
- to shp
- 코랩 런타임
- Python
- 혁신성장부문
- geoDataFrame
- 괄호 문제
- Chat-GPT
- 파이썬
- kmeans
- 해시태그
- python buildpacks
- Merge Repositories
- 알고리즘
- 셀레니움
- string to list
- convert to shp
- Selenium
- colab runtime
- flask
- clustering
- 웹페이지
- Crawling
- 백준
- 2164 카드2
- NLP
- 크롤링
Archives
- Today
- Total
코딩코딩코딩
백준(BAEKJOON) 1052 단어의 개수 본문
#1
stc = input().split()
print(len(stc))
#2
stc = input()
words = stc.strip().split()
print(len(words))
#3 오답
stc = input()
words = stc.strip().split(" ")
print(len(words))
split()은 default parameter가 whitespace임
'파이썬 > Algorithms' 카테고리의 다른 글
백준(BAEKJOON) 1110 더하기 사이클 - 파이썬(python) (0) | 2021.04.27 |
---|---|
백준(BAEKJOON) 1181 단어정렬 - 파이썬(python) (0) | 2021.04.12 |
백준(BAEKJOON) 2164 카드2 - 파이썬(python) (0) | 2021.04.10 |
백준(BAEKJOON) 9012 괄호 - 파이썬 (0) | 2021.04.10 |
백준(BAEKJOON) 1966 프린터큐 (0) | 2021.02.13 |
Comments