Why does a StopIteration error exist for this readlines() code snippet?

前端 未结 0 1419
情话喂你
情话喂你 2020-12-29 10:18

Why does this code snippet provide an error when running?

import sys
inputs = iter(sys.stdin.readlines())
TC = int(next(inputs))
for _ in range(TC):
    print         


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