PS C:\Users\ARISE\Documents\Python_Test_Projects> cd "c:\Users\ARISE\Documents\Python_Test_Projects"
PS C:\Users\ARISE\Documents\Python_Test_Projects> python -u "c:\Users\ARISE\Documents\Python_Test_Projects\login.py"
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:37: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
img1=img1.resize((100,100),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:207: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
img=img.resize((1366,130),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:216: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
bg1=bg1.resize((1366,768),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:232: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
std_img_btn=std_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:243: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
det_img_btn=det_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:254: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
att_img_btn=att_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:265: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
hlp_img_btn=hlp_img_btn.resize((180,180),Image.ANTIALIAS)
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:279: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
c:\Users\ARISE\Documents\Python_Test_Projects\login.py:312: DeprecationWarning: ANTIALIAS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead. exi_img_btn=exi_img_btn.resize((180,180),Image.ANTIALIAS)
上述错误正在推入我的vs代码终端
enter image description here在上面所附的图片中,我已经向你展示了我所面临的问题类型。我上面标记的十字按钮不起作用。
1条答案
按热度按时间t98cgbkg1#
Image.ANTIALIAS
已不再使用,您必须使用Image.Resampling.LANCZOS
来安装更新版本的pillow。https://pillow.readthedocs.io/en/stable/deprecations.html要使关闭按钮起作用,可以使用
Image.close()