RF--Collections操作列表和字典的一个库

 

*** Settings ***
Library  Collections    #RF操作列表和字典的一个库
*** Test Cases ***
case1
    @{list}    create list   111   222   333
    log to console   ${list}    #结果:['111', '222', '333']
    append to list   ${list}    a   b   c
    log to console   ${list}    #结果:['111', '222', '333', 'a', 'b', 'c']
    remove from list   ${list}  0   #下标从0开始
    log to console   ${list}    #结果:['222', '333', 'a', 'b', 'c']

 

posted @ 2020-07-08 23:20  追逐蹉跎的岁月  阅读(367)  评论(0编辑  收藏  举报