📜  使用 for 循环将机器人附加到列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:59.596000             🧑  作者: Mango

代码示例1
Some Test
    ${max_num}  Set Variable  5
    @{list_to_populate}  Create List  #   create empty list to populate with for-loop
    FOR  ${i}  IN RANGE  1  ${max_num}
    Append To List  ${list_to_populate}  ${i}
    END

    Log Many  @{list_to_populate}
    # 1  2  3  4