19_5_16(函數及狀態圖訓練)

def c(step): return int(step)*28 print(‘請輸入當天行走的步數!’) step = int(input()) print(‘今天共消耗卡路里:’,c(step),"(即" ,c(step)/1000,「千卡)」) def c(info): while True: if info==‘生活繳費’: return (‘180g’) elif info == ‘行走
相關文章
相關標籤/搜索