self.stack2.append(self.stack1[len(self.stack1)-1]) self.stack1.pop()这2行可以合并为 self.stack2.append(self.stack1.pop())
1

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务