xjk2001 @ 2020-01-07 12:48:42
PYTHON3.7.1上运行
s = input().split()
print(int(s[0]) + int(s[1]))
会报如下错误:
Traceback (most recent call last): File "D:/a+b.py", line 2, in <module> print(int(s[0]) + int(s[1])) IndexError: list index out of range
by qwqqwq_qwqqwq @ 2020-01-07 13:00:06
我猜是你输入的数据有问题
by wither_xz @ 2020-01-07 13:02:00
直接把代码复制上去,输入会被当成空行
by pocafup @ 2020-01-07 13:20:59
c++不香吗
by Surelysuper @ 2020-01-07 13:50:54
希望更丰富的展现?使用Markdown
(C艹它不香吗)
by 吃的 @ 2020-01-07 13:55:42
希使M
by AllenReder @ 2020-01-07 14:10:52
C艹不好么
by Monkey_Hunter @ 2020-01-15 19:21:10
@chen_zhe
by CarroT1212 @ 2020-03-06 18:28:17
直接复制的话建议你不要在Shell上运行