Initial release
This commit is contained in:
11
Herculito 6 Les oiseaux du lac de Stymphale.py
Normal file
11
Herculito 6 Les oiseaux du lac de Stymphale.py
Normal file
@@ -0,0 +1,11 @@
|
||||
from PIL import Image
|
||||
|
||||
image = Image.open("lake.png")
|
||||
|
||||
width, height = image.size
|
||||
|
||||
arrows = 0
|
||||
for x in range(width):
|
||||
for y in range(height):
|
||||
arrows = arrows + image.getpixel((x,y))
|
||||
print(arrows)
|
||||
Reference in New Issue
Block a user