github.com/GuanceCloud/cliutils@v1.1.21/pipeline/ptinput/funcs/md/append.en.md (about) 1 ### `append()` {#fn-append} 2 3 Function prototype: `fn append(arr, elem) arr` 4 5 Function description: Add the element elem to the end of the array arr. 6 7 Function parameters: 8 9 - `arr`: array 10 - `elem`: element being added. 11 12 Example: 13 14 ```python 15 # Example 1 16 abc = ["1", "2"] 17 abc = append(abc, 5.1) 18 # abc = ["1", "2", 5.1] 19 20 # Example 2 21 a = [1, 2] 22 b = [3, 4] 23 c = append(a, b) 24 # c = [1, 2, [3, 4]] 25 ```