How to copy and paste by using Keyboard in python? [closed]
Also, are there any functions I can use keyboard to control in order to create a program more efficiently?
Thanks
Do you mean that you want to copy/paste source code/text in the Python command line?
If you're on Windows, it works just like any DOS console. I recommend you open your Python console, click on the left upper icon and select "Properties". Then, on the options tab, check the "Insert mode" and "Quick Edit mode" checkboxes.
Now you can copy text by highlighting it with your mouse and pressing Enter, and paste text by right-clicking inside the window.
精彩评论