pdf-icon

UIFlow Guide

UIFlow 1.0 Blockly

Event

Unit

UIFlow 1.0 Project

variables

案例程序

创建变量

from m5stack import *
from m5ui import *
from uiflow import *

date = None

from numbers import Number

date = 10
date = (date if isinstance(date, Number) else 0) + (0 + 1)
print(date)

功能说明

date = 10
  • 为变量赋值
date = (date if isinstance(date, Number) else 0) + (0 + 1)
  • 修改当前变量, 输入参数为修改的大小(如: +10, -10), 可以是表达式。若变量值不为number类型, 则将输入参数的结果赋值给当前变量。
  • 赋值
On This Page