:nth-child(n)와 :nth-of-type(n)의 차이


:nth-child(n)와 :nth-of-type(n)의 차이

먼저 실행 코드를 보자 from bs4 import BeautifulSoup as BS html = """ td_text_01 td_text_02 p_text_01 td_text_03 p_text_02 p_text_03 """ soup = BS(html, "html.parser") mong = soup.select("div :nth-child(6)") #

:nth-child(n)와 :nth-of-type(n)의 차이에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : :nth-child(n)와 :nth-of-type(n)의 차이