Files
TransPyV/Test/App/flow_test.py
2026-07-19 13:18:46 +08:00

24 lines
424 B
Python

import stdio
import t, c
def flow_test() -> int:
i: int = 0
total: int = 0
while i < 5:
total = total + i
i = i + 1
stdio.printf("while: total=%d i=%d\n", total, i)
for k in range(10):
if k == 3:
break
stdio.printf("break: k=%d\n", k)
for m in range(5):
if m == 2:
continue
stdio.printf("continue: m=%d\n", m)
return 0