(python 3) When using raw_input(), why does the function add “\n” to the input?

前端 未结 0 1453
一向
一向 2021-01-27 07:53

I searched the first page of Google but couldn\'t find an answer. This won\'t happen for int(raw_input()) weirdly enough. But if i type:

a = [raw_input() for i in range(i

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