由买买提看人间百态

topics

全部话题 - 话题: mypayload
(共0页)
w*s
发帖数: 7227
1
来自主题: Programming版 - Python: how to do nested struct ?
say in c i have this
struct MyStruct {
struct MyHeader myHeader;
struct MyPayload myPayload;
};
struct MyHeader{
int id;
char name[MAX];
}
struct MyPayload {
int field1;
short field2;
.... // could be very long
}
what's the best ways in python pls ?
(共0页)