1
首先插一嘴,如何導(dǎo)入.json文件
命令行窗口打開(kāi) mongo.exe
創(chuàng)建數(shù)據(jù)庫(kù) db.createCollection('the_filename')
再打開(kāi)個(gè)命令行窗口,用來(lái)導(dǎo)入.json文件到 the_filename數(shù)據(jù)庫(kù)
mongoimport -d database_name -c the_filename 盤(pán)/file_name.json
2
命令行窗口 輸入 ''' jupyter notebook ''' 打開(kāi) 在網(wǎng)頁(yè)右邊 點(diǎn)擊Python 3 新建一個(gè)頁(yè)面
image.png
3
快捷鍵 Enter 跳下一行
Shift + Enter 執(zhí)行程序 并跳轉(zhuǎn)下一段
Tab 可以補(bǔ)齊命令