Python - ctrl L does not work
问题 Attempting to use Ctrl + L for clearing Power Sheel in Python 2.7.8 I get no response. Is there any problem in Windows 10 ? 回答1: Ctrl + L only works on Linux/OS X terminals. It does not work on Windows. To clear the screen on Windows you could do the following: import os os.system('cls') 回答2: To extend Kredns answer to Linux/OS X terminals as well: import os os.system('clear') 回答3: I like Kredns's answer, however, you have to type all of that every time. I made a module/function. Okay, I am