lundi 30 octobre 2017

struct equivalent in Python [duplicate]

This question already has an answer here:

What is the data type in Python equivalent to struct in C++? I just want to create a simple struct with a few members like the following -

struct Error
{
  int word;
  int bit;
};

CAMERA_ERROR;

Aucun commentaire:

Enregistrer un commentaire