amazon-dynamodb - 使用 boto3 更新 Dynamodb 表中的表数据时出错
问题描述
我正在尝试使用 boto3 更新到发电机数据库表。更新时出现以下错误。
TypeError:无法解压不可迭代的 NoneType 对象。
table = dynamodb.Table('user_data')
response = table.update_item(
Key={
'userName': userName
},
UpdateExpression='SET userPass = :val1',
ExpressionAttributeValues={
':val1': make_password(newPasswd)
}
)
解决方案
推荐阅读
- python - python中的卷曲请求
- android - 在 Kotlin/Java 中使用什么来进行有效的浮点集合处理?
- java - 在区块链中查找最新区块的最有效实现
- java - 为什么铸造给我这些奇怪的结果Java?
- neo4j - Popoto.js 自定义密码查询
- javascript - 尝试查找总和时连接的Javascript参数
- python - 如何让硒在谷歌扩展设置中移动滑块
- rxjs - 什么运算符用于从 observable 中获取多个值
- c++ - 无法在 main 中调用函数(使用 C++ 的 UDP 客户端应用程序中的继承)
- css - 对于图片预览,我需要在图片前面垂直放置 2 个 div 元素