[英]Something like DebuggerDisplay for Python?
Related to this question , is there any way to get the same functionality of DebuggerDisplay
attribute for Python? 与此问题相关,是否有任何方法可以为Python获取
DebuggerDisplay
属性的相同功能? This is my intended code to write: 这是我要编写的代码:
from collections import namedtuple
[DebuggerDisplay("{val}, {dir}")]
Value = namedtuple('Value', ('val', 'dir'))
I know DebuggerDisplay
is a .NET thing. 我知道
DebuggerDisplay
是.NET。 I was just hoping that there was something similar for Python in VS 我只是希望VS中的Python有类似的东西
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.