RE了?

P1001 A+B Problem

cygnus_beta @ 2021-02-05 11:46:43

a=int(input())
b=int(input())
print(a+b)

python RE了就离谱


by kyEEcccccc @ 2021-02-05 11:50:40

py2里print是关键字,py3里print是函数,你学的是py3但是选的语言是py2,再去语言栏里翻翻肯定有py3这个选项的


by kyEEcccccc @ 2021-02-05 11:50:53

@beta_Cyg


by cmll02 @ 2021-02-05 11:53:00

一行两个整数,要用.split()的,不能输两次


by impuk @ 2021-02-05 11:53:37

input()不挂才怪

input()一次读一行


by impuk @ 2021-02-05 11:54:22

print(sum(map(int,input().split())))

试试这个


by CGDGAD @ 2021-02-05 11:55:39

@KevinYao 人家选的就是py3好不好


by cygnus_beta @ 2021-02-05 20:48:15

谢谢各位大佬!


|