技术控

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

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

[复制链接]
loseheart 投递于 2016-10-15 16:14:29
185 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!



上一篇:Dallas Oracle User Group Performance & 12.2 New Features Technical Day
下一篇:自然语言处理顶级会议EMNLP2016最佳论文出炉
我要投稿

推荐阅读


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

© 2001-2017 Comsenz Inc.

返回顶部 返回列表