向数组追加高斯的代码示例:
array = ["Newton", "Einstein"] array.append("Gauss") print(array)
输出结果为:["Newton", "Einstein", "Gauss"]
解释:调用数组的append()方法,在数组的末尾追加字符串"Gauss"。
上一篇:AppendingaChildNodeusingGoldmarkIngolangiscausingastackoverflow
下一篇:Appendingscriptchildtoaangularcertainangularcomponent