1、构造重复元素列表
#构造重复元素列表
lists_zero01 = [0]*6
lists_zero02 = [0 for x in range(0, len(lists_zero01))]
print(lists_zero01)
print(lists_zero02)
2、构造等差数字列表
import numpy as np
lists_nums = list(np.arange(0, len(lists_zero01), 1))
print(lists_nums)
2021-09-06 00:21:09
#构造重复元素列表
lists_zero01 = [0]*6
lists_zero02 = [0 for x in range(0, len(lists_zero01))]
print(lists_zero01)
print(lists_zero02)
import numpy as np
lists_nums = list(np.arange(0, len(lists_zero01), 1))
print(lists_nums)