我正在使用itertools的成对配方的略微修改版本,看起来像这样 def pairwise(iterable): s – (s0,s1), (s1,s2), (s2, s3), … a, b = tee(iterable) next(b, None) return zip(a, b) 现在我发现我需要使用python 2.5运行代码,其中next()函数
在线咨询:
邮箱: xwei067@foxmail.com
工作时间:周一至周五,9:00-17:30,节假日休息