我尝试过:
client = Client("opc.tcp://192.168.0.104:16664")
try:
client.connect()
root = client.get_root_node()
value = ua.Variant
clt_1 = client.get_server_node().get_children()
var = ua.VariantType
finally:
client.disconnect()
使用ua_variant或ua.Variant