no message

This commit is contained in:
yinjun.chen1
2026-09-16 16:00:18 +08:00
parent 130e0d7d1e
commit 99877eddba
@@ -1,5 +1,7 @@
l = [1,2,3,4,5,6,7,8,9]
# list[start:stop:step]
# 绝对值决定"隔几个取一个"
# 正数表示从左到右取,负数表示从右到左取
print(l[::2])
print('-------------')
print(l[::3])