JAVA 의 이 선언을 파이썬에서는 어떻게 하죠 ?
글쓴이: Sailor_moon / 작성시간: 수, 2010/11/03 - 1:25오후
// =============== making a package to send ==================
byte[] sendPackage = new byte[512]; // package to send
byte[] isLast = new byte[1]; // indicated the package is the last one or
not
byte[] checkSum = new byte[20];
byte[] size = new byte[3]; //holds the size of data
byte[] seqNumber = new byte[3]; // holds the sequence number for the package
byte[] data = new byte[505]; //485 holds the data to send
아 ...어렵네요. 파이썬은 저렇게 정확히 바이트를 할당하는 방법이 없을까요
Forums:
댓글 달기