python-imaging-library - 使用 PIL img.show() 时出错
问题描述
我的目录中有一张图片,比如“image.png”。这是我运行的代码:
from PIL import Image
img = Image.open("image.png")
img.show()
并且弹出的错误信息是:“FSPathMakeRef(/Applications/Preview.app) failed with error -43。”
有谁知道这是什么意思?
解决方案
推荐阅读
- app-config - 如何处理 emm android 应用程序中的密码?
- javascript - 如果为空,则更改所需的元素样式
- reactjs - 如何在反应中将文件输入与文本输入一起提交到后端?
- reactjs - 反应原生地图:我无法为我的反应原生地图渲染标记?
- java - 从服务器到客户端的 PDF 文件传输:“java.io.IOException:现有连接被远程主机强行关闭”
- python - tkinter python 3中的自创按钮
- javascript - 如何在一定时间后禁用输入类型并启用按钮?
- snowflake-cloud-data-platform - Snowflake UI 会话在 4 小时后不会被终止
- mapping - 如何不使用 AutoMapper 映射空属性
- php - 将数字转换为星级 php 短代码?