Returning multiple lines from a data structure

前端 未结 0 1127
梦毁少年i
梦毁少年i 2021-02-01 04:31
lst = [1,2,3,4]
for element in lst:
    return ("element: {}".format(element))

Outcome:
element: 1

Wanted outcome:
element

相关标签:
回答
  • 消灭零回复
提交回复
热议问题