26 lines
503 B
Plaintext
26 lines
503 B
Plaintext
{
|
|
"cells": [
|
|
{
|
|
"cell_type": "code",
|
|
"execution_count": null,
|
|
"metadata": {},
|
|
"outputs": [],
|
|
"source": [
|
|
"import sys\n",
|
|
"from pathlib import Path\n",
|
|
"curr_path = str(Path().absolute()) # 当前路径\n",
|
|
"parent_path = str(Path().absolute().parent) # 父路径\n",
|
|
"sys.path.append(parent_path) # 添加路径到系统路径"
|
|
]
|
|
}
|
|
],
|
|
"metadata": {
|
|
"language_info": {
|
|
"name": "python"
|
|
},
|
|
"orig_nbformat": 4
|
|
},
|
|
"nbformat": 4,
|
|
"nbformat_minor": 2
|
|
}
|