我知道我可以使用类似于string[3:4]在Python中获取子字符串的东西,但3是什么意思somesequence[::3]?
string[3:4]
somesequence[::3]
python syntax slice
python ×1
slice ×1
syntax ×1