Python标准库:内置函数input([prompt])

本函数是实现从控制台输入一行字符串。其中参数prompt是输入字符串的提示字符串。

 

例子:

>>> s = input('#')

#this is the best one

>>> s

'this is the best one'

>>> s = input('#')

#中国深圳是一个高科技城市

>>> s

'中国深圳是一个高科技城市'

>>>

 



蔡军生  QQ:9073204 深圳


你可能感兴趣的:(python,milang)