题解 | 牛牛的逻辑运算

牛牛的逻辑运算

https://www.nowcoder.com/practice/d1f6b7dd048f48c58d974553f0c5a3bc

import sys

num_list = input().split()
x = int(num_list[0])
y = int(num_list[1])

print(x and y)
print(y and x)
print(not x) #表示x是否为空,或者说,是否为假
print(not y) #表示是否为真

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务