2019-08-22 + list [for /if]

2019-08-22  本文已影响0人  生病喝药水
a=[1,2,3,4,5,6,7,8]
[i for i in a[0:3]]
output:
[1,2,3,4]
上一篇 下一篇

猜你喜欢

热点阅读