OpenOPC.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:opc-rest-api 作者: matzpersson 项目源码 文件源码
def properties(self, tags, id=None):
      """Return list of property tuples (id, name, value) for the specified tag(s) """

      if type(tags) not in (types.ListType, types.TupleType) and type(id) not in (types.NoneType, types.ListType, types.TupleType):
         single = True
      else:
         single = False

      props = self.iproperties(tags, id)

      if single:
         return list(props)[0]
      else:
         return list(props)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号