python的if…elif…else語句怎么寫?
提問人:楊紫紅發(fā)布時間:2020-11-26
if…elif…else語句: 沒有switch
if a == ‘+’:
b = ‘+’
elif a == ‘-’:
b = ‘-’
else:
b = None
繼續(xù)查找其他問題的答案?
相關視頻回答
if…elif…else語句: 沒有switch
if a == ‘+’:
b = ‘+’
elif a == ‘-’:
b = ‘-’
else:
b = None
點擊加載更多評論>>