示例代码如下有帮助望采纳~
有帮助望采纳~
a, b = map(int, input().split()) if b >= 0: print(f'{a} + {b} = {a+b}') else: print(f'{a} - {-b} = {a+b}')