Hiding raw_input() password input

后端 未结 1 1431
星月不相逢
星月不相逢 2020-12-16 11:21

I want to hide my password but I don\'t know how. I have seen show=\"*\" and also getpass but I don\'t know how to place them into this code. I\'m

1条回答
  •  眼角桃花
    2020-12-16 12:04

    getpass hides the input, just replace raw_input after importing the module getpass, like this:

    import getpass
    .
    .
    .
    pa = getpass.getpass()
    

    0 讨论(0)
提交回复
热议问题