题解 | #牛牛的逻辑运算#
牛牛的逻辑运算
https://www.nowcoder.com/practice/d1f6b7dd048f48c58d974553f0c5a3bc
在输出语句中,使用与或非三种逻辑运算符,主要是考察这点
#!/usr/local/bin/python3 #牛牛的逻辑运算 str1 = input() list1 = str1.split(sep=' ') a = int(list1[0]) b = int(list1[1]) print(a and b,a or b,not a,not b,sep='\n')