Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个数据集,其中有几列具有预定义的名称。我想通过使用一个变量来访问这个数据集中的一个列,该变量包含 char 类型的列名。我应该如何做参考?
我试过了:
dataset.variableName
这是行不通的。
非常感谢您的帮助。
对动态字段名称使用括号:
dataset.(variableName)