Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 686
hkus10 Avatar asked Feb 20 '11 15:02

hkus10


1 Answers

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.

like image 121
Tim Pietzcker Avatar answered Nov 09 '22 17:11

Tim Pietzcker