python基礎(下)-條件,循環

條件判斷 循環 函數 類 條件判斷 if condition: do somthing else: do somthingpython total_cost = 22 if total_cost > 30: discount = 0.9 else: discount = 1 total_cost *=discount print('實際花費:{}'.format(tota
相關文章
相關標籤/搜索