请问下:
RobotFramework 里调用,想实现 Record1 的随机排序:
${Record1} create list 1 2 3 4
log many ${Record1}
${Record2}= Evaluate random.shuffle(${Record1}) random
# 打印后 Record1 为原值,Record2 为空(为空是对的)
# 最后一句瞎写的,比较通用的写法应该怎么写?
Python 里正常的是这样调用:
import random
number_list = [ 1,2,3,4]
random.shuffle(number_list)
print ( number_list )