UIFlow Guide
循环函数使用
from m5stack import *
from m5ui import *
from uiflow import *
date = None
list2 = None
i = None
j = None
date = 10
list2 = [5, 6, 7]
for count in range(10):
date = date + 1
while date < 25:
date = date * 2
for i in list2:
date = date + i
for j in range(0, 6, 2):
date = date + 1
if j == 3:
break
for count in range(10):
date = date + 1
list2 = [5, 6, 7]
for i in list2:
date = date + i
i
上,并且每迭代一次,运行 do 的内容一次while date < 25:
date = date * 2
for j in range(0, 6, 2):
date = date + 1
if j == 3:
break
a
开始增加到 b
,每次增加的数为 c
,并将每一次增加后的结果,迭代到变量 i
上,每迭代一次,运行 do 的内容一次break