コード例 #1
0
 def testDeepReverse2(self):
     self.assertEqual(hw.deepReverse([4,5,[[5,4],[1,2],8],1,8,[1,2]]), [[2, 1], 8, 1, [8, [2, 1], [4, 5]], 5, 4])
コード例 #2
0
 def testDeepReverse1(self):
     self.assertEqual(hw.deepReverse([1, [2, [4, 5], 6], 7]), [7, [6, [5, 4], 2], 1])