pycharm is set to run on the console, and displays the variable values involved in the code (similar to the matlab workspace)

        The work space of matlab can be very convenient to view the content and type of variables, very convenient, pycharm can also, there are several ways, one by one introduced below

Method 1 Semi-permanent type

        Next to Run in the upper right corner, find Edit Configuration, click

Insert picture description here

       

        Find and execute the following run using python console, check

Insert picture description here
       

Method 2 Right-click and select to execute the selected code in the python console

       
Insert picture description here
       

Method 3 shortcut keys

        Is the shortcut for the second method Alt + Shift + E

Guess you like

Origin blog.csdn.net/qq_43657442/article/details/109276603