我想问一下关于下面的源代码,我简化了它以使它更易于理解。 C代码 struct test
{
int test1;
};
int create_context(test **context);
int use_context(test *context);
Java代码 public static class test extends Structure {
public
如果我在这里遇到了术语错误的道歉,我无法想象这个特定的习惯用法会被调用。 我一直在尝试创建一个静态声明自身内部实例的Python 3类 - 有点像枚举可以工作。下面是我写的代码的简化版本: class Test:
A = Test("A")
B = Test("B")
def __init__(self, value):
self.value = val