擅长:python、mysql、java
<p>您可以尝试以下操作:</p>
<pre><code>db.update_item(Key={ "Name":"Dany"},
UpdateExpression='SET Vote = Vote + :incr',
ExpressionAttributeValues={':incr': {"N": "1"}}
)
</code></pre>
<p>来源:<a href="http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.AtomicCounters" rel="nofollow noreferrer">http://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithItems.html#WorkingWithItems.AtomicCounters</a></p>