其他分享
首页 > 其他分享> > 使用-robot【使用外部库】【random】

使用-robot【使用外部库】【random】

作者:互联网

  1. 外部库random的使用
#错误
${ran int}=    Evaluate random.randint(0, sys.maxsize)


# 正确
I'm surprised the randint() doesn't work for you - did you use the correct syntax, Evaluate must point/end with the external module you're using, "random" in this case?
${ran int}=    Evaluate    random.randint(0, sys.maxsize)    random

标签:randint,ran,Evaluate,random,robot,int,maxsize,使用
来源: https://www.cnblogs.com/amize/p/14948558.html