1. 首页
  2. 数据库
  3. 其它
  4. Python 入门:input

Python 入门:input

上传者: 2020-12-22 20:53:27上传 PDF文件 26.27KB 热度 15次
Python 入门:input hello 大家好,今天我们来学习input 当你想问别人问题时, 你就可以使用input 当然, 后期会教easygui库 我们开始学习吧 a = input('what is your name? ' + '\n') #创建变量储存返回值 #询问别人的姓名 print('hello ' + a)#向别人问好 #字符串拼接 OK 这就是input的简单用法,效果 console: >>>what is your name? XXX >>>hello XXX 总结 关键字 含义 input() 接收
下载地址
用户评论