且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在python调试器中检查复杂变量,例如pudb

更新时间:2023-09-18 23:40:52

要查看pudb中复杂数据类型的内容,请执行以下操作:

To see the contents of a complex data type in pudb:

  1. 使用向右箭头将光标移至右侧的 Variables 框.

使用向上和向下箭头将光标移动到您感兴趣的变量.

Use the up and down arrows to move the cursor to the variable you're interested in.

使用反斜杠"\"显示/隐藏数据结构的内容.

Use the backslash '\' to show/hide the contents of the data structure.