我有以下情况:
class data:
one = "FIRST"
two = "SECOND"
three = "THIRD"
class bandwidth:
pkgone = "TINY"
pkgtwo = "MEDIUM"
pkgthree = "ABOVE MEDIUM"
analysis = <some slicing from a dict>
让我们说:
打印(分析)
一个
现在,我要打印具有变量一个的类变量的值。所以输出应该像这样:
输出=此处的逻辑
打印(输出)
第一
我应该如何实现?