x=1
y=1
if y==x:
print('等于')
else:
print('不等于')
print('等于') if x==y else print('不等于')
一行写完if else语句
最新推荐文章于 2023-05-09 07:43:13 发布
x=1
y=1
if y==x:
print('等于')
else:
print('不等于')
print('等于') if x==y else print('不等于')