__init__.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:fontmerger 作者: iij 项目源码 文件源码
def show_font_details(font):
    print('{0:-^80}:'.format(' Font Details: '))
    for name in dir(font):
        if name.startswith('_'):
            continue
        value = getattr(font, name)
        if name == 'sfnt_names':
            for locale, _name, _value in value:
                print('{0:>32}: {1} = {2}'.format(locale, _name, _value))
        if type(value) in (types.IntType, types.FloatType,) + types.StringTypes:
            print('{0:>32}: {1}'.format(name, value))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号