我有此文档,我想将<label for="reportSelectMonth">Month:</label>
<select name="reportSelectMonth" id="reportSelectMonth">
<option value="">Select</option>
<option value="1" >January</option>
<option value="2" >February</option>
<option value="3" >March</option>
<option value="4" >April</option>
<option value="5" >May</option>
<option value="6" >June</option>
<option value="7" selected>July</option>
<option value="8" >August</option>
<option value="9" >September</option>
<option value="10" >October</option>
<option value="11" >November</option>
<option value="12" >December</option>
</select>
<label for="reportSelectYear">Year:</label>
<select name="reportSelectYear" id="reportSelectYear">
<option value="">Select</option>
<option value="2012" >2012</option>
<option value="2013" >2013</option>
<option value="2014" >2014</option>
<option value="2015" >2015</option>
<option value="2016" selected>2016</option>
</select>
import requests
from bs4 import BeautifulSoup
url = 'website'
r = requests.get(url)
soup = BeautifulSoup(r.text, 'lxml')
的状态更改为messageId: 2
read
我已尝试使用{
conversationId: 1,
message: [
{
text: 'Hello World',
userForm: {
userId: 1
},
userTo: [
{
messageId: 1,
userId: 1,
status: 'owner'
},
{
messageId: 2,
userId: 2,
status: 'not read'
}
]
},
{
text: 'Hello World',
userForm: {
userId: 1
},
userTo: [
{
messageId: 3,
userId: 1,
status: 'owner'
},
{
messageId: 4,
userId: 2,
status: 'not read'
}
]
}
]
}
https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/,但它没有用。
我在查询MongoDB中的子文档时仍然是新手。有人可以帮助我吗?