我使用了以下代码,但它垂直显示图像。我希望它们在 Jupyter Notebook 中并排显示。
display(Image.open(BytesIO(Item[iii][b'imgs'])))
display(Image.open(BytesIO(Item[jjj][b'imgs'])))
Run Code Online (Sandbox Code Playgroud)
我曾尝试使用此代码
display(HTML("<table><tr><td>display(Image.open(BytesIO(Item[jjj][b'imgs']))))
Run Code Online (Sandbox Code Playgroud)
但它是显示文本 display(Image.open(BytesIO(Item[jjj][b'imgs']))))