Python 條件判斷(if)的幾種格式

1. if a = 1 b = 2 if a < b: print 'a is less than b' 2. if else a = 1 b = 2 c = 0 if a < b and b == 2 or c > 0: print 'yes' else: print 'no' 3. if elif else a = 1 b = 2 c = 0 if a < b
相關文章
相關標籤/搜索