我无法从元组列表中解压缩大量变量。如何使解压缩的变量跨越多行?
我想改变
for t,a,f,b,s,x,j,p,w,q in results:
print(t,s,x)
至
for t,a,f,b,s,x,
j,p,w,q in results:
print(t,s,x)
另一种选择(带圆括号):
for (t, a, f, b, s, x,
j, p, w, q) in results:
print(t, s, x)
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句