返回时间错误

P1001 A+B Problem

oyf200512 @ 2024-10-19 15:40:41

a=input()
b=input()
prant(a+b)

退出代码1 这到底有啥问题


by imzfx_Square @ 2024-10-19 15:42:51

@oyf200512 input 返回值是字符串类型


by oyf200512 @ 2024-10-19 15:44:20

@imzfx_Square 明白了,感谢


by imzfx_Square @ 2024-10-19 15:47:31

@oyf200512 不客气,我们谷民大部分还是很友善的


by liuli688 @ 2024-10-19 15:50:38

@oyf200512 另外提醒 print 写成 prant


by oyf200512 @ 2024-10-19 15:56:16

@liuli688 我的妈呀


by a_legend_cat @ 2024-10-22 22:06:41

@oyf200512

a = input()
b = input()
print(int(a) + int(b)) #高精度

|