我有以下numpy数组
[[0 6 0 0]
[0 7 0 0]
[0 1 0 0]
[0 7 0 0]
[3 4 6 0]
[2 1 4 0]
[3 1 2 0]
[3 1 2 0]
[0 1 2 0]
[1 7 1 3]
[0 3 6 7]]
我希望获得如下组合:
1.[0 0 0 0 0 3 2 3 3 0 1 0]
2.[6 6 7 1 7 4 1 1 1 1 7 3]
3.[0 0 0 0 0 6 4 2 2 2 1 6]
4.[0 0 0 0 0 0 0 0 0 0 3 7]
5.[[0 6]
[0 7]
[0 1]
[0 7]
[3 4]
[2 1]
[3 1]
[3 1]
[0 1]
[1 7]
[0 3]]
依旧......
我们怎么能在循环中做到这一点?
答案 0 :(得分:0)
n
这会为n
的所有(合理)值获取长度为- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
// Make sure your segue name in storyboard is the same as this line
if ([[segue identifier] isEqualToString:@"YOUR_SEGUE_NAME_HERE"])
{
// Get reference to the destination view controller
YourViewController *vc = [segue destinationViewController];
// Pass any objects to the view controller here, like...
vc.dictionary = self.dictionary.
}
}
的列的所有组合。