我有一个名为hotel_helper.py的文件,我想从其中导入一个名为demo1的函数,但我无法导入它。我的hotel_helper.py文件: print('\n\n trying to import this function ')from hotel.helpers.hotel_helperfrom hotel.helpers.hotel_helper
我在Pycharm中有一个简单的ATM刺激功能,并且想为我的函数编写测试。然而,每次我在第一个函数上运行我的测试,请求用户输入,终端就要求我输入,而不是运行模拟。这是我的功能: pin_input = input('PLEASE ENTER YOUR 4-DIGIT PIN: ')
ifYou only have {} attempts remaining.".format(att