python—— python if else 语句多条件写法

b = '1'
if b == '2':
	print('2')
elif b == '3':
	print('3')
else:
	print('其它都不是')

Guess you like

Origin blog.csdn.net/qq_43201350/article/details/120110107