getpass.getpass() error without other code?

前端 未结 1 1431
鱼传尺愫
鱼传尺愫 2020-12-11 12:19
import getpass    
password=getpass.getpass(prompt=\"Password: \")
print(password)

This really simple code displays the error:

Warn         


        
相关标签:
1条回答
  • 2020-12-11 13:11

    Try running it on cmd.exe or windows PowerShell, instead of IDLE's.

    i.e

    > python myscript.py
    

    Assuming you have the python executable on your path, and you're in the current directory of myscript.py.

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