【发布时间】:2021-04-03 19:29:00
【问题描述】:
我正在尝试用 markdown 代码块反引号包装以下代码:
users_pipeline = ["$match":{"created.user":{"$exists":True}}},
{"$group":{"_id":"$created.user",
"count":{"$sum":1}}},
{"$sort":{"count":-1}},
{"$limit":10}]
results = [doc for doc in db.Houston.aggregate(users_pipeline)]
但我认为引号和特殊字符(如美元符号和引号)会妨碍您。我不确定如何解决这个问题。我试过使用转义字符,但似乎没有改善
【问题讨论】:
标签: python jupyter-notebook markdown jupyter