其实,我们只需要简单两步配置就可以让Pycharm自动导入模块
[b]第一步:Pycharm->Perferences->Editor->Auto Import[/b]
[img]http://dl2.iteye.com/upload/attachment/0126/1820/7e53c467-6ecb-3d93-9b9b-e29407c630a4.png[/img]
[b]第二步:Pycharm->Perferences->Keymap[/b]
[img]http://dl2.iteye.com/upload/attachment/0126/1822/a379c4af-c83e-35c5-9b45-a7ebf60e1960.png[/img]
就这么简单,设置完成后,来体验一下效果。导入random 模块,按住 ctrl+空格(空格键按两下)就会自动弹出可选的模块列表,上下移动进行切换。
[img]http://dl2.iteye.com/upload/attachment/0126/1824/1119f5ff-1f0e-3dc6-9f66-6b2dcf4ecef3.gif[/img]
[b]第一步:Pycharm->Perferences->Editor->Auto Import[/b]
[img]http://dl2.iteye.com/upload/attachment/0126/1820/7e53c467-6ecb-3d93-9b9b-e29407c630a4.png[/img]
[b]第二步:Pycharm->Perferences->Keymap[/b]
[img]http://dl2.iteye.com/upload/attachment/0126/1822/a379c4af-c83e-35c5-9b45-a7ebf60e1960.png[/img]
就这么简单,设置完成后,来体验一下效果。导入random 模块,按住 ctrl+空格(空格键按两下)就会自动弹出可选的模块列表,上下移动进行切换。
[img]http://dl2.iteye.com/upload/attachment/0126/1824/1119f5ff-1f0e-3dc6-9f66-6b2dcf4ecef3.gif[/img]