题解 | #函数求差#
函数求差
https://www.nowcoder.com/practice/ad1a6e344add40bdb05c44ce086c1e94
def cal(y,x): n1=x-y n2=y-x return n1,n2 x=int(input()) y=int(input()) a,b=cal(y,x) print(a) print(b)
函数求差
https://www.nowcoder.com/practice/ad1a6e344add40bdb05c44ce086c1e94
def cal(y,x): n1=x-y n2=y-x return n1,n2 x=int(input()) y=int(input()) a,b=cal(y,x) print(a) print(b)
相关推荐