Python
- 11 ответов
- 0 вопросов
7
Вклад в тег
os.path.basename(os.path.dirname(s))
index_col : int or sequence or False, default None
Column to use as the row labels of the DataFrame. If a sequence is given, a MultiIndex is used. If you have a malformed file with delimiters at the end of each line, you might consider index_col=False to force pandas to _not_ use the first column as the index (row names)
from PIL import Image
from imagehash import dhash
image1 = dhash(Image.open('1.png'))
image2 = dhash(Image.open('2.png'))
if image1 == image2:
# делаем что-то с одинаковыми фотографиями
soup = BeautifulSoup(driver.page_source)