173Jjx @ 2023-11-04 12:06:55
怎么用python写这道题呢
by mesan @ 2023-11-04 12:07:51
@173Jjx 底下不是有吗。
by 2021zjhs005 @ 2023-11-04 12:09:08
a,b=input().split()
print(int(a)+int(b))
//本蒟蒻是学习C++,python只是学习了一点点,可能有错。
by 2021zjhs005 @ 2023-11-04 12:09:50
好像确实有。 @173Jjx
by GoodLuckCat @ 2023-11-04 12:23:32
a=(int)(input())
b=(int)(input())
print(a+b)
by GoodLuckCat @ 2023-11-04 12:24:13
学校刚教 python
,蒟蒻不太会,凭印象写了一个
by Terrible @ 2023-11-04 12:24:56
@Huyuhao0215 你这个交不过去,在一行上一个 input()
就都读入了。
a,b=map(int,input().split())
print(a+b)
by wing_yhc @ 2023-11-04 12:29:34
a, b = input().split()
a = int(a)
b = int(b)
print( a + b)
by wing_yhc @ 2023-11-04 12:30:25
@Terrible %%%
by Rainber @ 2023-11-04 12:51:58
直接ctypes调用scanf好吧
by Rainber @ 2023-11-04 12:58:14
from ctypes import *
libc = CDLL("libc.so.6")
a = c_int()
b = c_int()
libc.scanf(b"%d%d",pointer(a),pointer(b))
c = c_int(a.value + b.value)
libc.printf(b"%d",c)