Giter Site home page Giter Site logo

20201112-homework-basic's Introduction

20201112 作業:Discord 登入系統

請撰寫一個程式,在輸入正確的帳號密碼時顯示隨機歡迎訊息。 如果帳密錯誤,請讓使用者可以重新輸入。

程式中請使用兩組陣列,分別為:

  1. users:帳號、密碼、姓名三個欄位。
  2. messages:接在名稱後面的歡迎詞。

可以自行設計寫死在程式碼中,名稱可以固定於歡迎詞前或後。

輸入說明

輸入預先設定於程式碼中的帳號與密碼組。

輸出說明

如果帳密正確,顯示名稱與歡迎詞。

如果帳密錯誤,請讓使用者可以重新輸入。

範例

帳密正確範例

帳號:goodjack

密碼:Goodjack-Is-Handsome!

小克 剛剛滑入了伺服器中。

帳密錯誤範例

帳號:goodjack

密碼:Goodjack-Is-Not-Handsome:(

帳號密碼錯誤,請重新輸入。


Pull Request 前請確認以下事項:

  • 已閱讀 作業繳交方式
  • 在下方附上 Repl 連結
  • 檔案放在自己學號的目錄下
  • 標題以「班級座號、學號、姓名」作為開頭
  • 其他說明事項可以在下面補充

20201112-homework-basic's People

Contributors

goodjack avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.