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 keyboard. 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.
簡單來說有時候會出現需要根據輸入不一樣的字 , 而產生一些不一樣的功用
- 目前想到有你在遊戲裡輸入名字而接下來的劇情顯示名字則會一直出現這個名字

(此文暫時到這如有新內容則會進行更新)
keywords <<
Previous Next >> print