0
は、JSONです:Pythonを使ってmongodbからデータを読み込むには?ここ
"work" : {
"secondary_sku" : [],
"internal_work" : [
{
"name" : "NCB",
"LOB" : "RUNME",
"rm" : "prabhu",
"skills" : [
"python",
"javascript libraries",
"java applets",
"py",
"sqoop"
],
"role" : ObjectId("589c6da731beda27110af128"),
"description" : "Strong understanding of JavaScript, its quirks, and workarounds\n\nBasic understanding of web markup, including HTML5- and CSS3\n\nGood understanding of advanced JavaScript libraries and frameworks su- ch as: AngularJS, KnockoutJS, Backbone.js, ReactJS, DurandalJS, Vue.js etc.\n\nGood understanding of asynchronous request handling- and partial page updates\n\nKnowledge of advanced JavaScript Concepts like Closures,- Promises- and Callbacks",
"responsibility" : "Strong understanding of JavaScript, its quirks, and workarounds\n\nBasic understanding of web markup, including HTML5- and CSS3\n\nGood understanding of advanced JavaScript libraries and frameworks su- ch as: AngularJS, KnockoutJS, Backbone.js, ReactJS, DurandalJS, Vue.js etc.\n\nGood understanding of asynchronous request handling- and partial page updates\n\nKnowledge of advanced JavaScript Concepts like Closures,- Promises- and Callbacks",
"current" : false,
"start" : ISODate("2017-03-30T00:00:00.000Z"),
"end" : ISODate("2017-03-31T00:00:00.000Z"),
"billable" : false,
"client" : "test"
}
]
のMongoDBから "仕事" の詳細データを読み込む方法。 。
work = [nref.get('internal_work', '') for nref in details.get('work', [{}])]
と
仕事=詳細[ "仕事"]( "internal_workを"、 "")を取得
注: "私はこのような試みた 詳細は" の名前でありますループ変数。