input([prompt])
input()读取标准输入并打印字符串到屏幕。

参数是自定义的提示符。

例子:

>>> input('$ ')
$ pwd
'pwd'

 

相关文章:

  • 2021-06-08
猜你喜欢
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2021-04-07
  • 2022-01-07
  • 2021-10-02
相关资源
相似解决方案