Bringing files, classes and methods from another Python file

0

I need to bring a class file like the one in class.py:

class Despesas(object):
    def __init__(self):
        self.Prioridade = Prioridade()
        self.Situacao = True
        self.Valor = 0.0
        self.Categoria = ''

For the View.py file.

In PHP I can do this function with the require ('filename') method, How to do this in Python 3.6?

    
asked by anonymous 18.09.2018 / 04:25

0 answers