{ "cells": [ { "cell_type": "code", "execution_count": null, "id": "af95aa4b", "metadata": {}, "outputs": [ { "ename": "", "evalue": "", "output_type": "error", "traceback": [ "\u001b[1;31m运行具有“py37 (Python 3.7.4)”的单元格需要ipykernel包。\n", "\u001b[1;31m运行以下命令,将 \"ipykernel\" 安装到 Python 环境中。\n", "\u001b[1;31m命令: \"conda install -n py37 ipykernel --update-deps --force-reinstall\"" ] } ], "source": [ "from pysnmp.hlapi import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "4c411635", "metadata": {}, "outputs": [ { "ename": "NameError", "evalue": "name 'nextCmd' is not defined", "output_type": "error", "traceback": [ "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)", "Cell \u001b[1;32mIn[2], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m nextCmd()\n", "\u001b[1;31mNameError\u001b[0m: name 'nextCmd' is not defined" ] } ], "source": [ "nextCmd()" ] } ], "metadata": { "kernelspec": { "display_name": "py37", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.7.4" } }, "nbformat": 4, "nbformat_minor": 5 }