“Python Get Nome of Funion” Respostas de código

Python Get Nome of Funion

print(my_function.__name__)
# "my_function"
Plif Plouf

Python obtenha função do nome da string

module = __import__('foo')
func = getattr(module, 'bar')
func()
Terrible Turtle

Respostas semelhantes a “Python Get Nome of Funion”

Perguntas semelhantes a “Python Get Nome of Funion”

Mais respostas relacionadas para “Python Get Nome of Funion” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código