nfu 40923123 student website

  • Home
    • Site Map
    • reveal
    • blog
  • 自我介紹
  • 電腦繪圖及機械製造
    • 鍵和鍵槽
    • 逕向間隙
  • 語文能力
    • 日文
      • 單字篇 1
    • 英文
  • python 程式語言
    • keywords
      • input
      • print
    • 變數及基本運算
      • assign 指定
    • Dictionary 字典
  • git 指令表
keywords << Previous Next >> print

input

Sometimes we would like to take the value for a variable from the user via their keyboard. Python provides a built-in function called input that gets input from the keyboard1. When this function is called, the program stops and waits for the user to type something. When the user presses Return or Enter, the program resumes and input returns what the user typed as a string.

簡單來說有時候會出現需要根據輸入不一樣的字 , 而產生一些不一樣的功用

  1. 目前想到有你在遊戲裡輸入名字而接下來的劇情顯示名字則會一直出現這個名字

(此文暫時到這如有新內容則會進行更新)


keywords << Previous Next >> print

Copyright © All rights reserved | This template is made with by Colorlib