题解 | #牛牛的逻辑运算#
牛牛的逻辑运算
https://www.nowcoder.com/practice/d1f6b7dd048f48c58d974553f0c5a3bc
'''打包输入 x,y=input().split() print(int(x) and int(y),int(x) or int(y),not int(x),not int(y),sep='\n') ''' '''列表 num=[int(num) for num in input().split()] print(num[0] and num[1],num[0] or num[1],not num[0],not num[1],sep='\n') ''' '''map函数 x,y=map(int,input().split()) print(x and y,x or y,not x,not y,sep='\n') ''' '''format x,y=map(int,input().split()) print(f'{x and y}\n{x or y}\n{not x}\n{not y}') ''' #函数 def num(): x,y=input().split() return f'{int(x) and int(y)}\n{int(x) or int(y)}\n{not int(x)}\n{not int(y)}' print(num())