之前是安装了jupyter,直接启动之后运行代码,没有结果。 后来知道是只是安装了jupyter ,没有安装notebook
由于上面的安装缺失,下面重新介绍下安装过程。 1、pip方式安装Jupyter(记得是分开安装2个) pip install jupyter pip install notebook
2、在cmd命令控制台执行启动 jupyter notebook 启动jupyter 新建一个控制台执行python3代码
最后执行代码,可见代码的执行结果。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/174711.html原文链接:https://javaforall.cn