python

python 的多个条件的判断

2020-07-15  本文已影响0人  隔壁小红馆
access = '生产' if self.access == 'production' else '外协' if ('外协' if self.access == 'foreign' else '采购' ) else '采购'
上一篇 下一篇

猜你喜欢

热点阅读