go to delete array element

Original link: https://www.cnblogs.com/mafeng/p/10250367.html

A: = [] int { 0 , . 1 , 2 , . 3 , . 4 }
 // remove the i-th element of 
i: = 2 
A = the append (A [: i], A [i + . 1 :] ...)

 

Guess you like

Origin www.cnblogs.com/wangjq19920210/p/12016769.html