PyCharm 查看变量值

方法一:

调试状态时,可以看Debugger窗口,里面有变量的值:

方法二:

Run菜单  - Edit Configurations 菜单

勾选 Run with Python Console

 

 运行,之后可以看到:

方法三:

调试状态,选中变量,右键:

方法四:

调试状态,Watch窗口, 加号可以添加Watch

原文地址:https://www.cnblogs.com/emanlee/p/15186235.html