github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/drop_key.md (about) 1 ### `drop_key()` {#fn-drop-key} 2 3 函数原型:`fn drop_key(key)` 4 5 函数说明:删除已提取字段 6 7 函数参数: 8 9 - `key`: 待删除字段名 10 11 示例: 12 13 ```python 14 # data = "{\"age\": 17, \"name\": \"zhangsan\", \"height\": 180}" 15 16 # 处理脚本 17 json(_, age,) 18 json(_, name) 19 json(_, height) 20 drop_key(height) 21 22 # 处理结果 23 { 24 "age": 17, 25 "name": "zhangsan" 26 } 27 ``` 28