首页 > IT职业 > IT职场 > 怎么通过jupyter运行python?

利用jupyter的cell是可以运行python文件的,即在cell中运行如下代码:(推荐:jupyter使用教程)
%run file.py
file.py为要运行的python程序,结果会显示在该cell中

运行结果如下:

更多python知识请关注python视频教程。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1446/viewspace-2834559/ ,如需转载,请注明出处,否则将追究法律责任。