我想在Linux中使用Python中的快捷键。下面是一个简单的代码:
import os
os.system("eclipse &")#launching eclipse
os.system("ctrl+alt+t")#bad code - e.g. run a terminal
第三行代码很糟糕,我想知道在Python中是否有可能使用快捷键。
当我试图安装python-gtk2-dev时,我会收到以下消息:
~$ sudo apt-get install python-gtk2-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libpaps0 linux-headers-4.4.0-51 linux-headers-4.4