为什么无法调用方法?

问题描述 投票:0回答:0

enter image description here

from PIL import Image, ImageDraw, ImageFont
font1 = ImageFont.truetype("arial.ttf", 16)
ll = 'str'
text_size = font1.get size(ll)
print(font1)

ImageFont.getsize() 也不可能

python-3.x pycharm
© www.soinside.com 2019 - 2024. All rights reserved.