addresses = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16" ] maxx = 6 q = 2 r = 4 for i in range(2): print(addresses[i * maxx: (i + 1) * maxx]) //['1', '2', '3', '4', '5', '6'] ['7', '8', '9', '10', '11', '12'] if r > 0: print (addresses[q * maxx: q * maxx + r]) //['13', '14', '15', '16']
string[,] array = new string[,] { {"cat", "dog"}, {"bird", "fish"}, };
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)