欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

jupyter notebook 使用

程序员文章站 2022-06-01 09:53:35
...
import time

for i in range(50):
    time.sleep(2)
    print(i)
0
1
2
3
4



---------------------------------------------------------------------------

KeyboardInterrupt                         Traceback (most recent call last)

<ipython-input-3-bc63d84f518d> in <module>()
      2 
      3 for i in range(50):
----> 4     time.sleep(2)
      5     print(i)


KeyboardInterrupt: 

print(‘Hello World!’)

a = 1
print(a)
1