# 代码块中的词典

Dynamo 2.0 不仅引入之前针对词典讨论的节点，还在代码块中提供了新功能！

可以使用如下所示的语法或基于 DesignScript 的节点表示。

由于词典是 Dynamo 中的对象类型，因此我们可以对其执行以下操作。

!

在将 Revit 数据与字符串相关联时，保持这些交互类型尤其有用。接下来，我们将了解一些 Revit 使用案例。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://primer2.dynamobim.org/zh-cn/5_essential_nodes_and_concepts/5-5_dictionaries-in-dynamo/3-code-block-uses.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
