python基礎(條件判斷,input,循環,break,continue)

1.條件判斷 if <條件判斷1>: <執行1> elif <條件判斷2>: <執行2> elif <條件判斷3>: <執行3> else: <執行4> 2.input 讀取用戶輸入python age = input('年齡:') age = int(age) if age<18: print('未成年') else: print('成年') 小案
相關文章
相關標籤/搜索