本文介绍了在Python中键入铸造问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Im as AS3开发人员,目前正在学习Python

Im a AS3 developer, currently learning Python

在AS3 ID中经常会这样做:

In AS3 Id quite often do this:

for ( var foo in fooArray ) {
   trace(FooObject(foo).name);
}

键入数组中的对象,以便我在代码中提示IDE

Typing casting the objects in the array, so that I get code hinting in my IDE

我如何在Python中这样做?

How would I do this in Python?

推荐答案

是在运行时在Python中确定的。因此,在IDE中通常没有代码提示(我假设你的意思是完成,导航等)。还有一些。

Types are determined at runtime in Python. Thus, there is typically less "code hinting" (I assume you mean completion, navigation, and so forth) in IDEs. There is still some.

相关:一个常用的IDE用于Python开发有一些提示是(或)与。某些。

Related: a commonly used IDE for Python development with some hinting is Eclipse (or Aptana) with pydev. Some installation instructions.

这篇关于在Python中键入铸造问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-11 18:35