题解 | #牛牛的逻辑运算#
牛牛的逻辑运算
https://www.nowcoder.com/practice/d1f6b7dd048f48c58d974553f0c5a3bc
python中无&&和||,使用and和or代替逻辑运算,有&和|按位与和或
x,y = map(int,input().split()) print(x and y) print(x or y) print(not x) print(not y)
牛牛的逻辑运算
https://www.nowcoder.com/practice/d1f6b7dd048f48c58d974553f0c5a3bc
x,y = map(int,input().split()) print(x and y) print(x or y) print(not x) print(not y)
相关推荐