+ 1
Pls?
Can sombody help me put photos on my codes pls?
8 ответов
+ 9
MaddieTheFreindlyCoder ,
since you have added "python" tag to your question
If you want to add image to your python code you can
import python module "urllib.request" which helps in opening and reading the image urls you want to display
https://sololearn.com/compiler-playground/c5exF1mhGSOb/?ref=app
But if you want to display images on Html pages , simply use <img> tag
<img src="your image url">
+ 2
you are trying to open `file.png` for writing....
are you sure about this?
then why is there `url_img` ?
note:
python needs pillow to work with images
+ 2
Using python and other languages...which language code u need
+ 1
To add photos to your code, you can use the HTML <img> tag. For example, if you have an image named photo.jpg in the same directory as your HTML file, you would write <img src="photo.jpg" alt="A description of the photo">. The src attribute specifies the path to your image file, and the alt attribute provides alternative text for the image if it cannot be displayed. https://www.the-disneyhub.com
0
SurajGuptaOnline i need python.
0
Hello, thank you for helping me katty Pery.
0
Hi, does that work for python??