0
を実行しているとき、私は私が実行すると、私はpythonの2 でそれを実行しようとしていながら、次ののpython 2構文エラーのpython 3コード
class ExperimentResult(BaseDataObject):
def __init__(self, result_type: str, data: dict, references: list):
super().__init__()
self.type = result_type
self.references = references
self.data = data
def __repr__(self):
return str(self.__dict__)
のように見えますクラスは、コードはPython 3で書かれていそれは私が得る
def __init__(self, result_type: str, data: dict, references: list):
^
SyntaxError: invalid syntax
これを解決するための "import_from_future"はありますか?
真ゾル** Python 2でコードを実行することを止める* –