Skip to content

Commit e45eb6c

Browse files
committed
add changes
1 parent caddaa7 commit e45eb6c

4 files changed

Lines changed: 17 additions & 1 deletion

File tree

‎python-tutorials/buzz.png‎

1.16 MB
Loading

‎python-tutorials/bw_buzz.png‎

426 KB
Loading

‎python-tutorials/google_search.py‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# instalar a biblioteca - pip install google-search
12
from googlesearch import search
23

34
#Python será a palavra que vamos pesquisar
@@ -8,4 +9,9 @@
89

910
#O print de python_search mostrará uma lista com os top 10 links
1011

11-
print(python_search)
12+
print(python_search)
13+
14+
#resultado
15+
# ['https://www.python.org/', 'https://www.python.org/', 'https://en.wikipedia.org/wiki/Python_(programming_language)',
16+
# 'https://pt.wikipedia.org/wiki/Python', 'https://python.org.br/', 'https://www.codecademy.com/catalog/language/python',
17+
# 'https://www.udemy.com/topic/python/', 'https://pypi.org/']

‎python-tutorials/pretoebranco.py‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#Convertendo imagem em preto e branco
2+
3+
from PIL import Image
4+
5+
#instalar pacote -> pip install Pillow
6+
7+
img = Image.open("buzz.png")
8+
blackandwrite = img.convert("L")
9+
blackandwrite.save("bw_buzz.png")
10+
blackandwrite.show()

0 commit comments

Comments
 (0)