Repl.it 教學

What is REPL ?

Read–Eval–Print Loop (REPL) 是一種互動介面,常用於表現程式語言的動作,其名稱即清楚表示了該介面的互動流程:

  • Read:讀取使用者輸入的指令。
  • Eval:縮寫自 evaluate,即運算使用者輸入的指令。
  • Print:輸出運算完該指令的結果。
  • Loop:上述三種動作,會不斷地依序執行,直至使用者將此介面關閉為止。

操作步驟

  • 點擊進入 Repl.it
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 申請完帳號後登入
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 根據要求填入資料
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 資料填寫完後,再點擊一次左側 Home 選項,即進入下方畫面
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 點選上面 Create 欄位中,Python 的選項
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 出現下方畫面後,將反白文字,改為自己喜歡的專案名稱
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 完成後,點擊下方 Create repl,即可建立 repl 環境
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →
  • 出現下方畫面後,即建立成功
    Image Not Showing Possible Reasons
    • The image file may be corrupted
    • The server hosting the image is unavailable
    • The image path is incorrect
    • The image format is not supported
    Learn More →

常用快捷鍵

  • Ctrl + Enter -> 執行程式