- 2025年05月12日
- 星期一
参见英文答案 Understanding Python’s slice notation30个 a=0123456789 a0123456789 a[1:-6:1] # working as expected123 a[2:-1:-1] # i was expecting
对list 进行切片 如列表 L = [Adam, Lisa, Bart, Paul] L[0:3] [Ada
参见英文答案 Understanding Python’s slice notation30个 a=0123456789 a0123456789 a[1:-6:1] # working as expected123 a[2:-1:-1] # i was expecting
对list 进行切片 如列表 L = [Adam, Lisa, Bart, Paul] L[0:3] [Ada