20230905
This commit is contained in:
1 parent
24a9839483
commit
23ce121293
11 files changed
+1506
-561
No files matched your search
+22
-4
@@ -159,15 +159,33 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 1,
|
||||
"metadata": {
|
||||
"execution": {
|
||||
"iopub.execute_input": "2023-08-29T03:26:35.055593Z",
|
||||
"iopub.status.busy": "2023-08-29T03:26:35.055086Z",
|
||||
"iopub.status.idle": "2023-08-29T03:26:35.077483Z",
|
||||
"shell.execute_reply": "2023-08-29T03:26:35.076400Z",
|
||||
"shell.execute_reply.started": "2023-08-29T03:26:35.055541Z"
|
||||
},
|
||||
"tags": []
|
||||
},
|
||||
"outputs": [],
|
||||
"outputs": [
|
||||
{
|
||||
"name": "stdout",
|
||||
"output_type": "stream",
|
||||
"text": [
|
||||
"bs b'\\xd4\\xc0\\xcd\\xaf'\n",
|
||||
"decode-bs: 岳童\n",
|
||||
"gbcode: b'\\xc2\\xed\\xc1\\xa2\\xd1\\xc7'\n",
|
||||
"gbs: c2edc1a2d1c7\n"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import binascii\n",
|
||||
"\n",
|
||||
"gbs = 'C0EEB574'\n",
|
||||
"gbs = 'D4C0CDAF'\n",
|
||||
"bs = binascii.a2b_hex(gbs)\n",
|
||||
"print('bs', bs)\n",
|
||||
"print('decode-bs:', bs.decode('gbk'))\n",
|
||||
@@ -1440,7 +1458,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.6"
|
||||
"version": "3.10.12"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in new issue
Block a user