返回列表 發帖

基本輸入

本帖最後由 鄭繼威 於 2022-8-18 15:15 編輯

語法
變數= input([提示字串])
由input所接收的值型別是字串!


  1. score=int(input("請輸入你的成績: "))
  2. print(score)
複製代碼

  1. score=int(input("請輸入你的成績:"))
  2. print("你的成績為:",score)
  3. print("你的成績-10分",score-10)
複製代碼

TOP

返回列表