You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
327 B
12 lines
327 B
import pymongo |
|
myclient = pymongo.MongoClient("192.168.0.10:27017") |
|
mydb = myclient["mydatabase"] |
|
mycol = mydb["customers"] |
|
mydict = { "name": "John", "address": "Highway 37" } |
|
mycol.insert_one(mydict) |
|
x = mycol.find({}) |
|
for i in x: |
|
print(i) |
|
|
|
|
|
rootarango = '88ccbf65a4e8865ce7da86f72a5fc3cf21e805e0137213214c95a3eb2e8e9817' |