回答編集履歴
4
修正
test
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[str.strip([chars])](https://docs.python.org/ja/3/library/stdtypes.html?highlight=strip#str.strip)
|
6
6
|
[リストの内包表記](https://docs.python.org/ja/3/tutorial/datastructures.html#list-comprehensions)
|
7
7
|
|
8
|
-
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り (`["0x%02X " % x
|
8
|
+
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り (`["0x%02X " % x for x in Bytes]`)
|
9
9
|
そのリストを空文字`''`で連結した文字列にして (`''.join(...)`)
|
10
10
|
できた文字列の先頭と末尾の空白を消した文字列を作る (`....strip()`)
|
11
11
|
|
3
修正
test
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
[str.strip([chars])](https://docs.python.org/ja/3/library/stdtypes.html?highlight=strip#str.strip)
|
6
6
|
[リストの内包表記](https://docs.python.org/ja/3/tutorial/datastructures.html#list-comprehensions)
|
7
7
|
|
8
|
-
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り (`["0x%02X" % x in x for Bytes]`)
|
8
|
+
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り (`["0x%02X " % x in x for Bytes]`)
|
9
9
|
そのリストを空文字`''`で連結した文字列にして (`''.join(...)`)
|
10
10
|
できた文字列の先頭と末尾の空白を消した文字列を作る (`....strip()`)
|
11
11
|
|
2
kaizenn
test
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
[str.strip([chars])](https://docs.python.org/ja/3/library/stdtypes.html?highlight=strip#str.strip)
|
6
6
|
[リストの内包表記](https://docs.python.org/ja/3/tutorial/datastructures.html#list-comprehensions)
|
7
7
|
|
8
|
-
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り
|
8
|
+
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り (`["0x%02X" % x in x for Bytes]`)
|
9
|
-
そのリストを空文字`''`で連結した文字列にして
|
9
|
+
そのリストを空文字`''`で連結した文字列にして (`''.join(...)`)
|
10
|
-
できた文字列の先頭と末尾の空白を消した文字列を作る
|
10
|
+
できた文字列の先頭と末尾の空白を消した文字列を作る (`....strip()`)
|
11
11
|
|
12
12
|
ことをしています
|
13
13
|
|
1
追記
test
CHANGED
@@ -4,3 +4,10 @@
|
|
4
4
|
[printf 形式の文字列書式化](https://docs.python.org/ja/3/library/stdtypes.html#old-string-formatting)
|
5
5
|
[str.strip([chars])](https://docs.python.org/ja/3/library/stdtypes.html?highlight=strip#str.strip)
|
6
6
|
[リストの内包表記](https://docs.python.org/ja/3/tutorial/datastructures.html#list-comprehensions)
|
7
|
+
|
8
|
+
`Bytes`の各要素を`0x%02X`の形の文字列にしたリストを作り
|
9
|
+
そのリストを空文字`''`で連結した文字列にして
|
10
|
+
できた文字列の先頭と末尾の空白を消した文字列を作る
|
11
|
+
|
12
|
+
ことをしています
|
13
|
+
|