name 'pygal' is not defined

版权声明:若需要转载,请标明原文地址。 https://blog.csdn.net/qq_41903671/article/details/82025359

今晚学习python的时候,遇到了一个这样的错误——"name pygal is not defined"。

这种错误一般有两个原因:

其一,python 2 和 python 3 的语言断层;

其二,最直白的错误,在程序的前面,你代码写错了...比如...没有写入import pygal

猜你喜欢

转载自blog.csdn.net/qq_41903671/article/details/82025359