0

As my understanding, computer could only store binary data. So the text is encoded in utf-8 in memory.

Then I learned that if we want to convert "Int" to bytes in the code, we normally use struct module. Does that mean that for any "Int" in a file, python compiler always use struct module automatically when storing the info in memory?

I'm quite confused with this concept so I could be making some stupid mistakes.

wjandrea
  • 23,210
  • 7
  • 49
  • 68
Ariel
  • 9
  • 1

0 Answers0