📜  从 java 到 python 的代码转换器 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:41.598000             🧑  作者: Mango

代码示例7
n <- Maxindex - 1 
REPEAT 
NoMoreSwaps <- TRUE 
FOR j <- 1 TO n 
IF MyList [j] > MyList [j + l] 
THEN 
ENDIF 
END FOR 
n <- n - 1 
Temp .... MyList[j) 
MyList[j] <- MyList[j + 1] 
MyList[j + 1] .... Temp 
NoMoreSwaps <- FALSE 
UNTIL NoMoreSwaps TRUE