Update index.py

This commit is contained in:
Mr Chen
2024-04-29 21:22:31 +08:00
parent 0b65f50b4b
commit 093bf3910b
+1 -1
View File
@@ -261,7 +261,7 @@ def testData():
db = client.test
col = db["demo"]
rndStr = mw.getRandomString()
rndStr = mw.getRandomString(10)
insert_dict = { "name": "v1", "value": rndStr}
x = col.insert_one(insert_dict)
print(x)