vendredi 18 janvier 2019

What is classOf[] equivalence in python?

I have imported a class in Python:

from mxnet.ndarray import NDArray

Now I want to get a type object without initializing an instance of NDArray. In Scala I would do this:

val t = classOf[NDArray]

Is there a way to do it in Python?





Aucun commentaire:

Enregistrer un commentaire