英文文件:
input
([prompt##])
If the prompt argument is present, it is written to standard output without a trailing newline. The function then reads a line from input, converts it to a string (stripping a trailing newline), and returns that. When EOF is read, EOFError is raised
說明:
1. 如果提供了promat參數,首先將參數值輸出到標準的輸出,並且不換行。>>> s = input('please input your name:') please input your name:Ain >>> s 'Ain'
#
以上是Python內建input函數的詳細介紹的詳細內容。更多資訊請關注PHP中文網其他相關文章!