Home >Backend Development >Python Tutorial >Where are Python images saved?
Where are Python images saved? Let me introduce how to save python images:
Open the winPython integrated development environment interface, and Create a py script as shown in the figure.
Related recommendations: "python video tutorial"
Load the skimage library and related files, the code is as follows:
from skimage import io,data
Enter the following code to complete the reading and saving of the image:
img=data.chelsea() io.imshow(img) io.imsave('d://cat.jpg',img)
Click the Save button to save our file, Just give the file a name;
You can see the file name we saved from above;
Then, click twice to run. Save our pictures to the corresponding location;
Save the pictures to the d drive, and you can see the related pictures at the corresponding location.
The above is the detailed content of Where are Python images saved?. For more information, please follow other related articles on the PHP Chinese website!