python的if…elif…else语句怎么写?
提问人:杨紫红发布时间:2020-11-26
if…elif…else语句: 没有switch
if a == ‘+’:
b = ‘+’
elif a == ‘-’:
b = ‘-’
else:
b = None
继续查找其他问题的答案?
相关视频回答
回复(0)
if…elif…else语句: 没有switch
if a == ‘+’:
b = ‘+’
elif a == ‘-’:
b = ‘-’
else:
b = None
点击加载更多评论>>