[python技巧]用乘法初始化list的坑. 1. python中用乘法初始化list. 在python中使用List乘法可以构建重复元素,比如:. a = [1]*10 print(a) a[0] = 10 print(a) b ...
確定! 回上一頁