計算機科學和Python編程導論

1:優先級順序 算數運算>比較運算>邏輯運算python

2::1 and 2 <<2    python裏bollean表達式的返回的是決定表達式值的那個參數的值 3 or 0 <<3web

3:round(2.6) <<3.0    round(2.4)<<2.0 四捨五入spa

4 range(0,3)<<0,1,2   range(3,0,-1) <<3,2,1orm

相關文章
相關標籤/搜索