#基于Python2.7

#若是想Python做到和C++中while(scanf()!=EOF)一样的多组输入效果,可以如实例所示书写

#实例实现了多组输入,计算A+B+C并输出的任务

1 while True:
2     try:
3         print sum(map(int,raw_input().split()))
4     except:
5         break

 

相关文章:

  • 2021-08-13
  • 2022-12-23
  • 2021-07-07
  • 2021-09-13
  • 2022-02-01
  • 2021-09-07
  • 2021-11-03
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2022-12-23
相关资源
相似解决方案