首页 > 解决方案 > Python RandomInfo 库 TypeError:get_email() 得到了意外的参数

问题描述

我刚开始使用 randominfo 库在 python 中编写一些代码

https://pypi.org/project/randominfo/

在我的代码中,我有:

from randominfo import get_email, Person

get_email(Person = None)

我收到以下错误:

TypeError: get_email() got an unexpected keyword argument 'Person'

我完全按照文档中的方式调用它,但出现此错误。我正在使用带有 python 3.8 的 pycharm IDE。我无法弄清楚为什么会这样。

标签: python

解决方案


推荐阅读