如果不是函数中的整数,我尝试验证用户输入。Input phone number, must containing digits. ')
如果我输入number,它就会打印这个数字(然而Pycharm告诉我,最后一行中的变量号可能没有定义),但是当它崩溃时,它会再次请求enter:
Enter the number: s
我正在尝试定义一个导入模块的函数,并将该函数放在我自己的模块中,这样当我处理某个类型的项目时,我需要输入的所有内容是: import from user * #setup is the function which imports the modules 然而,每当我尝试这样做时,它根本就不起作用。在我运行