可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Can you loop through list (using range that has a step in it) over and over again until all the elements in the list are accessed by the loop? I have the following lists: result = [] list = ['ba', 'cb', 'dc', 'ed', 'gf', 'jh'] i want the outcome (result) to be: result = ['dc', 'cb', 'ba', 'jh', 'gf', 'ed'] How do i make it loop through the first list, and appending each element to result list, starting from the third element and using 5 as a step, until all the elements are in the results list? 回答1: Assuming the step and the length of the