作者热门文章
- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
Python 的 zip
函数执行以下操作:
a = [1, 2, 3]
b = [6, 7, 8]
zipped = zip(a, b)
结果
[[1, 6], [2, 7], [3, 8]]
最佳答案
this怎么样? ?
C# 4.0 LINQ 的新 ZIP 运算符
public static IEnumerable<TResult> Zip<TFirst, TSecond, TResult>(
this IEnumerable<TFirst> first,
IEnumerable<TSecond> second,
Func<TFirst, TSecond, TResult> func);
关于c# - 如何在 C# 中执行 Python 的 zip?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2427015/
我是一名优秀的程序员,十分优秀!