BaşlayınÜcretsiz başlayın

Connecting to a MongoDB server

To get started you need to connect to a MongoDB server from inside Python. The pymongo package provides the MongoClient for this.

Bu egzersiz, kursun bir parçasıdır

Introduction to MongoDB in Python

Kursa Göz Atın

Egzersiz talimatları

  • From the pymongo package, import MongoClient so you can use it.
  • Create a MongoClient instance and store it in a variable client.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Import MongoClient
from ____ import ____ 

# Create client
client = ____
Kodu Düzenle ve Çalıştır