1、测试 ctrl + F6(快捷键)

>>> list1 = ["aaa", "bbb", "ccc", "ddd"]
>>> list1
['aaa', 'bbb', 'ccc', 'ddd']
>>> type(list1)
<class 'list'>
>>>    ## 此处执行ctrl + F6, 重启shell,相当于重置变量
================================ RESTART: Shell ================================
>>> list1
Traceback (most recent call last):
  File "<pyshell#78>", line 1, in <module>
    list1
NameError: name 'list1' is not defined

 

相关文章:

  • 2021-09-23
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-14
  • 2022-12-23
  • 2021-07-31
  • 2022-02-19
  • 2021-11-20
  • 2021-08-15
相关资源
相似解决方案