python中[-1]、[:-1]、[::-1]、[n::-1]使用方法
摘要:转载自:原文链接:https://blog.csdn.net/qq_21840201/article/details/85084621 a=[1, 2, 3, 4, 5, 6] print(a[:-1],a[1:],a[:],a[-1:]) print(list(zip(a[:-1],a[1:]))
阅读全文
posted @ 2020-01-16 16:11
posted @ 2020-01-16 16:11
posted @ 2020-01-15 11:05
posted @ 2020-01-13 11:49
posted @ 2020-01-13 11:41
posted @ 2020-01-12 23:42