How to set “end” parameters based on conditions inside print

后端 未结 0 1447
无人共我
无人共我 2021-01-17 05:49

I want to print a list object with 5 items in a for loop, would like to print only the 3rd item(i.e. _ == 2) with new line while discarding newlines for other i

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