quizcards.py 文件源码

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

项目:pandas-100 作者: deeplook 项目源码 文件源码
def make_cards_file(path, cover, items, verbose=False):
    "Make cards with as many items as possible, shrinking too big ones."

    cardSize = (9.1 * cm, 5.9 * cm)
    cards = []
    for q, a in make_cards_platypus(cardSize, cover, items, verbose=verbose):
        cards += [q, a]

    outPath = os.path.splitext(path)[0] + ".pdf"
    pageSize = landscape(A4)
    layout(outPath, cards, pageSize, cardSize, frame=True, debug=False)

    if verbose:
        print("wrote %s" % outPath)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号