我是Python编程的初学者.我正在尝试使用格雷厄姆扫描方法找到凸包的算法.但是,在伪代码中,有一个repeat ... until循环,我无法想出用Python编写它的方法.
如何repeat ... until在Python中编写循环?
Joh*_*ooy 54
REPEAT
...
UNTIL cond
Run Code Online (Sandbox Code Playgroud)
相当于
while True:
...
if cond:
break
Run Code Online (Sandbox Code Playgroud)