質問編集履歴

2

コードがサイトのものであることを追記

2018/11/29 13:18

投稿

slimat
slimat

スコア57

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
 
4
4
 
5
5
  以下のpythonのstructモジュールに関しての記事にて分からないところがありました。
6
+
7
+ 下記コードは下記リンク先に載っていたものです。
6
8
 
7
9
  [リンク内容](https://techacademy.jp/magazine/19058)
8
10
 

1

2018/11/29 13:18

投稿

slimat
slimat

スコア57

test CHANGED
File without changes
test CHANGED
@@ -6,13 +6,13 @@
6
6
 
7
7
  [リンク内容](https://techacademy.jp/magazine/19058)
8
8
 
9
- ```c
9
+ ```python
10
10
 
11
11
  data = pack('hhl', 1, 2, 3)
12
12
 
13
13
  data
14
14
 
15
- //b'\x01\x00\x02\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00'
15
+ #b'\x01\x00\x02\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x00'
16
16
 
17
17
  ```
18
18