这段代码有什么问题?
>>> import ctypes as ct
>>> class Uni(ct.Union):
... __fields__ = [("sh",ct.c_short),("sh2",ct.c_short)]
>>> t = Uni()
>>> t.sh = 0x0102
>>> t.sh
258
>>> t.sh2
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Uni' object has no attribute 'sh2'