语法 原型 在go/src/builtin/builtin.go中对append说明如下: // The append built-in function appends elements to the end of a slice. If// it has sufficient capacity, the destination is resliced to accommodate th
1、将一个列表的数据复制到另一个列表中。 a = [1,2,3,4] c = [] for i in range(len(a)): c.append(a[i]) print(c) 换种方法: a = [1,2,3,4] b = a.copy() print(b) 2、输出 9*9 乘法口诀表。 for i in range(1,10): print() for j in