问题 In C++ I can initialize a vector using std::vector<uint8_t> data = {0x01, 0x02, 0x03}; For convenience (I have python byte strings that naturally output in a dump of hex), I would like to initialize for a non-delimited hex value of the form: std::vector<uint8_t> data = 0x229597354972973aabbe7; Is there a variant of this that is valid c++? 回答1: Combining comments from Evg, JHbonarius and 1201ProgramAlarm: The answer is that there is no direct way to group but a long hex value into a vector,