x=1
y=1
if y==x:
print('等于')
else:
print('不等于')
print('等于') if x==y else print('不等于')
一行写完if else语句
最新推荐文章于 2024-04-24 10:00:00 发布
x=1
y=1
if y==x:
print('等于')
else:
print('不等于')
print('等于') if x==y else print('不等于')