일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 대이터
- web
- pycharm
- paragraph
- CES 2O21 참가
- inorder
- java역사
- tensorflow
- discrete_scatter
- mglearn
- classification
- 머신러닝
- 결합전문기관
- html
- bccard
- KNeighborsClassifier
- vscode
- web 사진
- CES 2O21 참여
- 데이터전문기관
- 재귀함수
- postorder
- cudnn
- 자료구조
- web 용어
- 웹 용어
- broscoding
- C언어
- web 개발
- Keras
- Today
- Total
목록분류 전체보기 (688)
bro's coding
!pip install kss ''' Collecting kss Downloading kss-2.4.0.1-py3-none-any.whl (66 kB) |████████████████████████████████| 66 kB 665 kB/s Installing collected packages: kss Successfully installed kss-2.4.0.1 ''' import kss text='엎친데 덮친 격이다. 영국발 코로나바이러스감염증(COVID-19) 변이 바이러스가 또 한번 변이해 남아프리카공화국발 변이 바이러스를 모방하고 있다고 워싱턴포스트(WP)와 CNN이 3일 보도했다. 해당 사례는 미국에서도 확인됐다. 백신에 좀 더 강해졌다는 얘기인데, 전문가들은 빠른 백신 접종의 중요성을 강조한..
from nltk.tokenize import sent_tokenize text="Local farmers are protesting strengthened regulations on living shelters for foreign laborers introduced in the wake of a Cambodian worker’s death, claiming the measures are ill-devised and demanding more support from the government.In a press conference Tuesday near the Ministry of the Employment and Labor building in Sejong, the Korean Advanced Far..
from nltk.tokenize import word_tokenize print(word_tokenize("Local farmers are protesting strengthened regulations on living shelters for foreign laborers introduced in the wake of a Cambodian worker’s death, claiming the measures are ill-devised and demanding more support from the government.")) ''' ['Local', 'farmers', 'are', 'protesting', 'strengthened', 'regulations', 'on', 'living', 'shelte..
!pip install selenium
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/ciqyMX/btqVzRmwvIg/CnUolbKjkPPvit5LsJNcD0/img.jpg)
A-Z from ConsumerReports.org www.consumerreports.org import requests from bs4 import BeautifulSoup response = requests.get("https://www.consumerreports.org/cro/a-to-z-index/products/index.htm") data = BeautifulSoup(response.text,"html.parser") # 속성 # attr = {class_:"products-a-z__results__item"} subdata= data.find_all("a",class_="products-a-z__results__item") for sub in subdata: # None 제거 if sub..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/I9ovG/btqVyUqdEjI/kuzfn5DObMsCalSFVoW6ok/img.jpg)
import requests from bs4 import BeautifulSoup response = requests.get("http://naver.com") data = BeautifulSoup(response.text,"html.parser") # id가 u_skip인 것들을 모두 찾음 print(data.find(id="u_skip")) ''' 뉴스스탠드 바로가기 주제별캐스트 바로가기 타임스퀘어 바로가기 쇼핑캐스트 바로가기 로그인 바로가기 ''' import requests from bs4 import BeautifulSoup response = requests.get("http://naver.com") data = BeautifulSoup(response.text,"html.parser") # ..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/T42iv/btqVzSTaIbO/UmkU2fwFmlI4JUkM8cDFDK/img.jpg)
import requests from bs4 import BeautifulSoup # naver에 get request response = requests.get("http://naver.com") # html parse data = BeautifulSoup(response.text,"html.parser") print(data.title) print(data.title.string) ''' NAVER NAVER ''' print(data.title.parent) ''' ''' print(data.head.children) # for i in data.head.children: print(i) ''' NAVER ''' print(data.div) # 뉴스스탠드 바로가기 주제별캐스트 바로가기 타임스퀘어 바..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/esuGHb/btqVtbMgR2r/tjAGaWkHXhnpubXRZ9Jt1K/img.jpg)
# beautiful soap install !pip install bs4
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/bAq1eH/btqUZtVh3Q5/s5cY7kSeWKnwRDeJpe2QDK/img.png)
4344번: 평균은 넘겠지 대학생 새내기들의 90%는 자신이 반에서 평균은 넘는다고 생각한다. 당신은 그들에게 슬픈 진실을 알려줘야 한다. www.acmicpc.net ''' 문제 대학생 새내기들의 90%는 자신이 반에서 평균은 넘는다고 생각한다. 당신은 그들에게 슬픈 진실을 알려줘야 한다. 입력 첫째 줄에는 테스트 케이스의 개수 C가 주어진다. 둘째 줄부터 각 테스트 케이스마다 학생의 수 N(1 ≤ N ≤ 1000, N은 정수)이 첫 수로 주어지고, 이어서 N명의 점수가 주어진다. 점수는 0보다 크거나 같고, 100보다 작거나 같은 정수이다. 출력 각 케이스마다 한 줄씩 평균을 넘는 학생들의 비율을 반올림하여 소수점 셋째 자리까지 출력한다. 예제 입력 1 5 5 50 50 70 80 100 7 100 ..