1)个数字组成的列表 ls,输出一个列表lt,其中lt中第i个元素等于ls中除ls">
赞
踩
lt = eval(input(""))
s = 1
res = []
for i in range(len(lt)):
tem = lt[:]
tem.pop(i)
for j in tem:
s *= j
res.append(s)
s = 1
print(res)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。