[英]In Visual Studio Code using Python, Is there a way to see the contents of a module without first having to type a letter?
I'm in Visual Studio Code using Python.我在 Visual Studio Code 中使用 Python。 When importing a module I would like to see the classes it contains so as to make sure it has what I'm looking for.
导入模块时,我想查看它包含的类,以确保它具有我正在寻找的内容。 Is there a way to see the contents of a module without first having to type a letter?
有没有一种无需先输入字母即可查看模块内容的方法? In IDLE sometims it is possible to do this.
在 IDLE 中,有时可以这样做。
For example, in VSC, at the start of a script:例如,在 VSC 中,在脚本的开头:
from random import #At this point a list should somehow appear
Thanks谢谢
After you typed "from random import "
hit Ctrl+Space
to bring up autocomplete menu, it is a default shortcut but if you wish to change it you can, just search for Trigger Suggest
in Keyboard Shortcuts输入
"from random import "
后Ctrl+Space
以调出自动完成菜单,这是默认快捷方式,但如果您想更改它,只需在键盘快捷方式中搜索Trigger Suggest
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.