python - 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。我无法弄清楚为什么会这样。
解决方案
推荐阅读
- swift - 如何在swift中有效地表示htonl?
- android - 传递给 singleArgViewModelFactory 时 ::MainViewModel 是什么意思
- java - 无法使用 jdbc 将 spark 数据集写入数据库
- c++ - 返回和不返回有什么区别?
- python - Selenium:从网站上抓取文本会输出错误的东西
- android - 如何解决原生集成中的 AR 核心问题?
- php - 在登录页面上验证用户名和密码的问题
- angular - RxJS forkJoin 的 http 请求被 chrome 取消
- java - spring boot 立即返回结果无法执行函数
- python - 删除现有的类变量 yield AttributeError