Is there a way to delete created variables, functions, etc from the memory of the interpreter?

前端 未结 6 1947
春和景丽
春和景丽 2020-11-27 10:07

I\'ve been searching for the accurate answer to this question for a couple of days now but haven\'t got anything good. I\'m not a complete beginner in programming, but not y

6条回答
  •  一向
    一向 (楼主)
    2020-11-27 10:51

    Yes. There is a simple way to remove everything in iPython. In iPython console, just type:

    %reset
    

    Then system will ask you to confirm. Press y. If you don't want to see this prompt, simply type:

    %reset -f
    

    This should work..

提交回复
热议问题