Skip to content

Commit 4c5841e

Browse files
committed
Hex
1 parent b5a5613 commit 4c5841e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ Bytes
14231423
```python
14241424
<str> = <bytes>.decode(encoding='utf-8')
14251425
<int> = int.from_bytes(<bytes>, byteorder='big|little', signed=False)
1426-
<hex> = <bytes>.hex()
1426+
'<hex>' = <bytes>.hex()
14271427
```
14281428

14291429
### Read Bytes from File

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@ <h3 id="encode-1">Encode</h3>
12421242
<h3 id="decode-1">Decode</h3>
12431243
<pre><code class="python language-python hljs">&lt;str&gt; = &lt;bytes&gt;.decode(encoding=<span class="hljs-string">'utf-8'</span>)
12441244
&lt;int&gt; = int.from_bytes(&lt;bytes&gt;, byteorder=<span class="hljs-string">'big|little'</span>, signed=<span class="hljs-keyword">False</span>)
1245-
&lt;hex&gt; = &lt;bytes&gt;.hex()
1245+
<span class="hljs-string">'&lt;hex&gt;'</span> = &lt;bytes&gt;.hex()
12461246
</code></pre>
12471247
<h3 id="readbytesfromfile">Read Bytes from File</h3>
12481248
<pre><code class="python language-python hljs"><span class="hljs-function"><span class="hljs-keyword">def</span> <span class="hljs-title">read_bytes</span><span class="hljs-params">(filename)</span>:</span>

0 commit comments

Comments
 (0)