2024-04-25 07:33:28 发布
网友
import sys def main(): keystr = input("Enter the Key: ") key = int(keystr) if (key <=0) or (key>=25): print("The key is out of range") sys.exit()
当我想用键的输入(<;=0或>;=25)终止时,有一个错误消息。在
我怎样才能修好它? 错误显示,我在空转状态下运行这个程序。如果在终端上,它工作得很好。在
目前没有回答
目前没有回答
相关问题 更多 >
编程相关推荐