如何在Spyder中显示函数参数? [英] How to display function arguments in Spyder?

查看:1023
本文介绍了如何在Spyder中显示函数参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将Spyder 2.2.5与Python 2.7结合使用,并且希望编辑器在键入第一个括号后显示要调用的函数的参数。我知道这是可能的,因为我可以在正在使用的视频教程中看到它。我已经尝试了(至少我认为是这样。)所有菜单项。
在这里变得疯狂,请帮忙!

I'm using Spyder 2.2.5 with Python 2.7 and I want the editor to display the arguments of the function I'm calling after I type the first parenthesis. I know it's possible, because I can see it in the video-tutorials I'm using. I've tried (at least I think so..) all menu-items. Getting crazy here, please help!

推荐答案

您可以激活对象检查器,以通过为编辑器或控制台启用自动连接来显示功能本身的文档。然后,当您按下左括号时,它将向您显示功能参数。

You can activate the object inspector to display the documention of the function itself by enabling automatic connections for your editor or console. It will then show you the function parameters as you press the left parenthesis.

要启用它,请转到工具>首选项>对象检查器。在帮助->自动连接下,检查所需的编程环境并启用插件。

To enable it go to Tools > Preferences > Object Inspector . Under Help-> Automatic connections check your desired programming environment and enable plug-in.

这篇关于如何在Spyder中显示函数参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆