问题描述:
im_crop = im.crop(left,top,right,bottom)
TypeError: crop() takes from 1 to 2 positional arguments but 5 were given
解决之道:
将crop中的left、top、right、bottom封装成一个元组crop((left,top,right,bottom))
im_crop = im.crop(left,top,right,bottom)
TypeError: crop() takes from 1 to 2 positional arguments but 5 were given
将crop中的left、top、right、bottom封装成一个元组crop((left,top,right,bottom))
本文标题:TypeError: crop() takes from 1 t
本文链接:https://www.haomeiwen.com/subject/eazlfqtx.html
网友评论