看板 Python 關於我們 聯絡資訊
各位好! 印象中有看過別人的code輸出在pdf上,連在pycharm上的關鍵字顏色都一併保 留 請問該怎麼做到呢!? 估狗了一會發現Code2pdf這個套件,但我照著網頁寫的import,pycharm 卻找不到code2p df套件 以下是我打的程式碼 from Code2pdf.code2pdf import Code2pdf ifile,ofile,size = "test.py", "test.pdf", "A4" pdf = Code2pdf(ifile, ofile, size) # create the Code2pdf object pdf.init_print() # call print method to print pdf 煩請各位解惑,謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 111.253.89.233 ※ 文章網址: https://www.ptt.cc/bbs/Python/M.1530884176.A.113.html
laputaflutin: 我都用sphinx轉pdf 07/06 22:11