我有這樣的PHP代碼$array = array('1','2','3');for ($i1=0; $i1<count($array);$i1++){ for ($i2=$i1+1; $i2<count($array);$i2++) { echo $array[$i1].' '.$array[$i2]; }}我想用 python 編寫這段代碼
如何在 python 中制作這樣的循環?
慕碼人8056858
2023-04-21 10:30:46