📜  java到python代码转换 - Python代码示例

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

代码示例2
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