Movatterモバイル変換
[0]ホーム
do...until wisdom needed...
Remco Gerlichscarblac at pino.selwerd.nl
Mon Apr 16 13:02:48 EDT 2001
Benjamin.Altman <benjamin.altman at noaa.gov> wrote in comp.lang.python:> Any answer does not seem ideal in Python, but what about an indent concluded with an> "until" like:>> # do some stuff> # do some more stuff> until condition == trueSo how would you put that after another block?while cond(): #bla #bla #bla #do some stuffuntil cond2()That doesn't work. You need a proper non-indented block start.Besides, it's ugly :).-- Remco Gerlich
More information about the Python-listmailing list
[8]ページ先頭