urllib - 在 python3 中编译时出现错误“TypeError: 'module' object is not callable”
问题描述
我正在尝试将此代码用于我的项目。
当我尝试运行此代码时,我收到一个错误:TypeError: 'module' object is not callable.
此错误的详细信息如下:
Traceback (most recent call last):
File "edit2.py", line 597, in <module>
if __name__ == "__main__":
File "edit2.py", line 417, in main
else:
File "edit2.py", line 75, in connect_earthexplorer_no_proxy
params = urllib.parse.urlencode(dict(username=usgs['account'],password= usgs['passwd'], csrf_token=token))
TypeError: 'module' object is not callable
请帮我解决这个问题。
解决方案
推荐阅读
- apache-spark - 火花:坚持partitionby不起作用
- python - 为什么不列出函数在打印语句中不起作用?
- c# - 如何使用仅具有视图模型类型的 Autofac 解析视图模型?
- html - 我将如何创建动画渐变内阴影?
- facebook - 如何通过单击颤动应用程序中的按钮自动从 facebook 中的图库中发布图像?
- javascript - 如何使用下面的代码将记录添加到 javascript 数组中?
- javascript - 在 MongoDB 中使用 $where 计算文档数
- vector - Lisp数据结构使用点对中的向量
- java - 运行整个junit集成测试类时无法在Java应用程序中打断点
- sql - 使 API 获取请求并将响应数据存储到 sql db