假如yaml中的数据如下,想设置phone的值为变量,然后可以每次都读取到一个11位数随机值:
- msg: 密码为空格 username: 1234567 password: 1234567 phone:
取范围的倒有
# 10到100内的随机数 ${random.int(10,100)}