我想在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
当删除未使用的内核(在/boot上腾出空间)时,我得到以下消息:
The following packages were automatically installed and are no longer required:
gnome-mplayer hardinfo libgda-5.0-4 libgda-5.0-common libgmlib1 libgmtk1
libgmtk1-data libmusicbrainz3-6 libwxsqlite3-3.0-0 linux-headers-3.19.0-30
linux-headers-3.19.0-30-generic l