我想做相同的
class Foo(object): bar = 1
使用Python的C API.换句话说,我想使用C创建一个具有静态变量的Python类.
我怎样才能做到这一点?
c python
c ×1
python ×1