@DuncanVaughan5/

Python Pictures Import

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
#img  = Image.open(path)    
# On successful execution of this statement,
# an object of Image type is returned and stored in img variable)
from PIL import Image

try: 
    img  = Image.open("https://www.google.com/url?sa=i&source=images&cd=&ved=2ahUKEwjlps7J5b7iAhXkLX0KHQCXBioQjRx6BAgBEAU&url=https%3A%2F%2Fwww.amazon.com%2FMikasa-Training-Water-Polo-Ball%2Fdp%2FB003WCZF12&psig=AOvVaw3z4CzShcxc-HWzmhCsB_BU&ust=1559152433656799") 
except IOError:
    pass