技术控

    今日:0| 主题:63445
收藏本版 (1)
最新软件应用技术尽在掌握

[其他] GitHub - guoruibiao/getpass2: A better lib compared with standard 'getpass&

[复制链接]
loseheart 发表于 2016-10-15 16:14:29
227 0
getpass2

  A better lib compared with standard 'getpass' in Python, easier and simpler to use.
  How to install:

  1. pip install getpass2
复制代码
How to use:

  Make sure you are in your console.
  1. from getpass2 import getpass
复制代码
And then the function    getpasswill return what you typed and show how many characters you have typed!  
  example

  1. from getpass2 import getpass
  2. ...
复制代码
If something doesn't work, you can also copy the source named getpass2.py to your workspace. That will be OK!
  Tips

  You can custom your tip statement for the prompt parameter.
  And most importantly, when you want to custom you tip parameter, remember to add a '%d' in it. That's really really important.
  Finally, hope you can get happiness after using getpass2. Thank you!
我要投稿

回页顶回复上一篇下一篇回列表
手机版/c.CoLaBug.com ( 粤ICP备05003221号 | 粤公网安备 44010402000842号 )

© 2001-2017 Comsenz Inc.

返回顶部 返回列表