ask:python中的简单输入验证

时间:2024-06-27 04:26:32
【文件属性】:

文件名称:ask:python中的简单输入验证

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-27 04:26:32

Python

问 python的简单输入验证 安装 pip install ask 用法 >>> from ask import ask, askChar, askInt, askString, askPassword, askEmail, askBool, explain >>> ask() # Creates an empty input query here >>> askInt('Your age') Your age # Input here (Only accepts integers) >>> askString("What's your name?") What's your name? # Input here >>> askChar('Do you want to proceed?', ['y','n']) Do you want to proceed? (y/n) # Input


【文件预览】:
ask-master
----setup.py(602B)
----.gitignore(80B)
----MANIFEST.in(124B)
----LICENSE(1KB)
----README.rst(1KB)
----ask()
--------__init__.py(4KB)

网友评论