高仿模拟练习,补全代码空缺,答案点击按钮展开
从右到左、每隔一个字符取出 s 中的字符,填充空缺。
s = "0123456789" print(____)
:-2]
切片 [start:end:step] 中 step=-2 表示从末尾倒序,步长 2。结果 = "97531"。