我希望在数组内插入10条数据
users_values.append((i, 75, 1, x[j] + '.mp4', str(uuid.uuid1()) + ".mp4", 'abc', '2018-08-01 06:21:37', '2018-08-01 06:21:37', 0, 0))
10条数据的样子是
变量x[j]
从这个数组里面顺序取值 x = ['a', 'b', 'c', 'd', 'e']
变量i从828到837取值
for i in range(828, 837, 1)
我的大致思路是这样的
users_values = [] x = ['a', 'b', 'c', 'd', 'e'] for j in x: (i, 75, 1, x[j] + '.mp4', str(uuid.uuid1()) + ".mp4", 'abc', '2018-08-01 06:21:37', '2018-08-01 06:21:37', 0, 0) for i in range(828, 837, 1): (i, 75, 1, x[j] + '.mp4', str(uuid.uuid1()) + ".mp4", 'abc', '2018-08-01 06:21:37', '2018-08-01 06:21:37', 0, 0) users_values.append()
请问怎么实现
梵蒂冈之花
相关分类