Python FPDF 返回重新启动 c 错误,我该如何解决?

问题描述

我正在尝试学习使用 FPDF,但出现以下错误。任何帮助将不胜感激。

# Python program to create
# a pdf file
  
  
from fpdf import FPDF
  
  
# save FPDF() class into a 
# variable pdf
pdf = FPDF()
  
# Add a page
pdf.add_page()
  
# set style and size of font 
# that you want in the pdf
pdf.set_font("Arial",size = 15)
  
# create a cell
pdf.cell(200,10,txt = "GeeksforGeeks",ln = 1,align = 'C')
  
# add another cell
pdf.cell(200,txt = "A Computer Science portal for geeks.",ln = 2,align = 'C')
  
# save the pdf with name .pdf
pdf.output("GFG.pdf")   

错误如下: = 重新启动:C:\Users\Me\Appdata\Local\Programs\Python\python38\Program_name

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)