from PIL import Image. filename = "car_.jpg". im = Image. open (filename). ratio = float (im.size[ 0 ]) / float (im.size[ 1 ]). print ratio.
確定! 回上一頁