Run ID:118061

提交时间:2025-04-22 21:44:08

import collections str = "ABCDEFG" cd = collections.deque() for char in str: cd.extendleft(char) print(''.join(cd))