假设我有一个二维数组,如下所示:
array = {{1,2},{3,4}};
现在我想做这样的事情:
def remove_duplicates_2(word):
write_index = 0
for i in range(len(word)):
found = False
for j in range(0, write_index):
if word[i] == word[j]:
found = True
break
if found == False:
word[write_index] = word[i]
write_index += 1
return word
有什么方法(在C#中)一次设置多维数组的所有值?
感谢您的时间。