1. 首页
  2. 数据库
  3. 其它
  4. Python采用raw_input读取输入值的方法

Python采用raw_input读取输入值的方法

上传者: 2020-12-31 10:19:41上传 PDF文件 32.05KB 热度 12次
本文较为详细的介绍了python中raw_input的用法,使用raw_input 能够很方便的丛控制台读入数据。具体用法示例如下: 1.输入字符串 #13222319810101**** nID = '' while 1: nID = raw_input("Input your id plz") if len(nID) != len("13222319810101****"): print 'wring length of id,input again' else: break print 'your id is %s' % (nID) 2.输入整数 nAg
用户评论