python的咋没题解,我来加一个 解题思路:使用了一个无限循环来读取输入,直到遇到EOFError异常或者文件结束符为止。在每次循环中,它使用map()函数将输入的一行拆分为两个整数a和b,并计算它们的和,然后输出结果。注意事项:加个try-except结构比直接whiletrue循环更严谨一些参考代码:whileTrue:try:a 题解列表 2023年08月14日 1 点赞 0 评论 912 浏览 评分:9.9
1085——————A+B for Input-Output Practice (I) 题目:1085:A+BforInput-OutputPractice(I)**题目描述**YourtaskistoCalculatea+b.Tooeasy?!Ofcourse!Ispeciallydesignedtheproblemforacmbeginners.Youmusthavefoundtha 题解列表 2022年08月20日 0 点赞 0 评论 650 浏览 评分:0.0
A+B for Input-Output Practice (I)-题解(Python代码)python开荒,关于无输入如何推出循环 摘要:```python x = input() # 先输入 while x: # 如果input无输入x值为"",循环退出 s = x.split(" ") print(int(s…… 题解列表 2020年03月15日 0 点赞 0 评论 1706 浏览 评分:9.9