我有以下代码:
def do_math(a, b, kind = 'add' ):
if (kind=='add'):
return a+b
else:
return a-b
do_math(1, 2)
我使用此页面,以便将 ATOM 转换为交互模式:
https://github.com/foreshadow/atom-python-run/wiki/12-How-Do-I-Use-atom-python-run#interactive-mode
但它返回 1,而不是预期的 3。
这是一个屏幕截图:
我应该如何处理/解决这个问题,所以返回值为 3?