inputconsole:一个控制台它将所有输出保持在输入线以上而不会中断输入线 源码
输入控制台 InputConsole是Python的控制台,它将所有输出保持在输入行上方,而不会中断输入行。 $ pip3 install inputconsole 例子 from inputconsole import InputConsole # Create the console console = InputConsole () # Register a command def help ( args ): console . write ( "I don't want to help you {0}. \n " . format ( args [ 0 ])) console . register_command ( 'help' , help ) # Start listening for input on a new thread # Input line will
下载地址
用户评论