使用带有input()Python3的退格符

时间:2016-11-27 16:23:20

标签: python python-3.x pyscripter

我在input()语句中添加了换行符,现在,当用户键入单词时,它就像隐藏密码一样隐藏。

与我的程序摘录一样:

     else:
        name = input("\nPlease enter the name of the son to delete: ")
        name = name.title()
        if name in names:
            del names[name]
            print("\nOK, deleted: The list is now ", names)
        else:
            print("I don't have that name")

我只是想知道这是否正常,因为我还没有找到任何参考资料,或者它是一个小故障'我偶然发现了什么?

我使用Pyscripter 2.6(64位)和Python 3.1.3

0 个答案:

没有答案